ソースを参照

FontUtils: Simplified code. See #6403

Mr.doob 10 年 前
コミット
60e27ec37b
1 ファイル変更2 行追加6 行削除
  1. 2 6
      src/extras/FontUtils.js

+ 2 - 6
src/extras/FontUtils.js

@@ -464,10 +464,6 @@ THREE.FontUtils.generateShapes = function ( text, parameters ) {
 } )( THREE.FontUtils );
 
 // To use the typeface.js face files, hook up the API
-var typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
-if ( typeof self !== 'undefined' ){
-	self._typeface_js = typeface_js;
-}
-THREE.typeface_js = typeface_js;
-
 
+THREE.typeface_js = { faces: THREE.FontUtils.faces, loadFace: THREE.FontUtils.loadFace };
+if ( typeof self !== 'undefined' ) self._typeface_js = THREE.typeface_js;