Selaa lähdekoodia

Update FontUtils to fix #6709

gero3 10 vuotta sitten
vanhempi
commit
8cc96dd9e5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {