Pārlūkot izejas kodu

Merge pull request #6711 from gero3/patch-40

Update FontUtils to fix #6709
Ricardo Cabello 10 gadi atpakaļ
vecāks
revīzija
c0f0f22463
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/extras/FontUtils.js

+ 1 - 1
src/extras/FontUtils.js

@@ -31,7 +31,7 @@ THREE.FontUtils = {
 
 		try {
 
-			return this.faces[ this.face ][ this.weight ][ this.style ];
+			return this.faces[ this.face.toLowerCase() ][ this.weight ][ this.style ];
 
 		} catch (e) {