1
0
Эх сурвалжийг харах

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

Ben Houston 13 жил өмнө
parent
commit
3dcf635abd

+ 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;

粤ICP备19079148号