1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
<h1>[name]</h1>
<p class="desc">
Create a set of [page:Shape Shapes] representing a font loaded in JSON format.<br /><br />
This is used internally by the [page:FontLoader].
</p>
<h2>Examples</h2>
<p>
[example:webgl_geometry_text_shapes geometry / text / shapes ]<br/>
[example:webgl_shaders_vector vector / text ]<br/>
</p>
<h2>Constructor</h2>
<h3>[name]( data )</h3>
<p>
data -- JSON data representing the font.<br /><br />
This constructor creates a new [name], which is an array of [page:Shape Shapes].
</p>
<h2>Properties</h2>
<h3>[property:array data]</h3>
<p>The JSON data passed in the constructor.</p>
<h3>[property:Boolean isFont]</h3>
<p>
Used to check whether this or derived classes are fonts. Default is *true*.<br /><br />
You should not change this, as it used internally by the renderer for optimisation.
</p>
<h2>Methods</h2>
<h3>[method:null generateShapes]( [param:String text], [param:Float size] )</h3>
<p>
[page:String text] -- string of text.<br />
[page:Float size] -- (optional) scale for the [page:Shape Shapes]. Default is *100*.<br />
Creates an array of [page:Shape Shapes] representing the text in the font.
</p>
<h2>Source</h2>
<p>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
</p>
</body>
</html>
|