|
@@ -12,7 +12,8 @@
|
|
|
|
|
|
<div class="desc">
|
|
<div class="desc">
|
|
Class for loading a font in JSON format. Returns a [page:Font Font], which is an
|
|
Class for loading a font in JSON format. Returns a [page:Font Font], which is an
|
|
- array of [page:Shape Shape]s representing the font.<br /><br />
|
|
|
|
|
|
+ array of [page:Shape Shape]s representing the font.
|
|
|
|
+ This uses the [page:FileLoader] internally for loading files. <br /><br />
|
|
|
|
|
|
You can convert fonts online using [link:https://gero3.github.io/facetype.js/ facetype.js]
|
|
You can convert fonts online using [link:https://gero3.github.io/facetype.js/ facetype.js]
|
|
</div>
|
|
</div>
|
|
@@ -50,12 +51,18 @@
|
|
|
|
|
|
<h3>[name]( [page:LoadingManager manager] )</h3>
|
|
<h3>[name]( [page:LoadingManager manager] )</h3>
|
|
<div>
|
|
<div>
|
|
- [page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].
|
|
|
|
|
|
+ [page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br /><br />
|
|
|
|
+ Creates a new [name].
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <h2>Properties</h2>
|
|
|
|
+
|
|
|
|
+ <h3>[property:LoadingManager manager]</h3>
|
|
<div>
|
|
<div>
|
|
- Creates a new [name].
|
|
|
|
|
|
+ The [page:LoadingManager loadingManager] the loader is using. Default is [page:DefaultLoadingManager].
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+
|
|
<h2>Methods</h2>
|
|
<h2>Methods</h2>
|
|
|
|
|
|
<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
|
|
<h3>[method:null load]( [page:String url], [page:Function onLoad], [page:Function onProgress], [page:Function onError] )</h3>
|
|
@@ -63,10 +70,15 @@
|
|
[page:String url] — required<br />
|
|
[page:String url] — required<br />
|
|
[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Texture texture].<br />
|
|
[page:Function onLoad] — Will be called when load completes. The argument will be the loaded [page:Texture texture].<br />
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
[page:Function onProgress] — Will be called while load progresses. The argument will be the XmlHttpRequest instance, that contain .[page:Integer total] and .[page:Integer loaded] bytes.<br />
|
|
- [page:Function onError] — Will be called when load errors.<br />
|
|
|
|
|
|
+ [page:Function onError] — Will be called when load errors.<br /><br />
|
|
|
|
+
|
|
|
|
+ Begin loading from url and pass the loaded [page:Texture texture] to onLoad.
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <h3>[method:Font parse]( [page:Object json] )</h3>
|
|
<div>
|
|
<div>
|
|
- Begin loading from url and pass the loaded [page:Texture texture] to onLoad.
|
|
|
|
|
|
+ [page:Object json] — The <em>JSON</em> structure to parse.<br /><br />
|
|
|
|
+ Parse a <em>JSON</em> structure and return a [page:Font].
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<h2>Source</h2>
|
|
<h2>Source</h2>
|