Parcourir la source

add THREE.TypeFaces = self._typeface_js; to enable access to _typeface_js in different contexts.

Ben Houston il y a 12 ans
Parent
commit
3dcf635abd
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/extras/FontUtils.js

+ 2 - 1
src/extras/FontUtils.js

@@ -456,4 +456,5 @@ THREE.FontUtils.generateShapes = function( text, parameters ) {
 })(THREE.FontUtils);
 
 // To use the typeface.js face files, hook up the API
-self._typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
+self._typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
+THREE.typeface_js = self._typeface_js;