2
0

Font.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. Create a set of [page:Shape Shapes] representing a font loaded in JSON format.<br /><br />
  14. This is used internally by the [page:FontLoader].
  15. </p>
  16. <h2>Examples</h2>
  17. <p>
  18. [example:webgl_geometry_text_shapes geometry / text / shapes ]<br/>
  19. [example:webgl_shaders_vector vector / text ]<br/>
  20. </p>
  21. <h2>Constructor</h2>
  22. <h3>[name]( data )</h3>
  23. <p>
  24. data -- JSON data representing the font.<br /><br />
  25. This constructor creates a new [name], which is an array of [page:Shape Shapes].
  26. </p>
  27. <h2>Properties</h2>
  28. <h3>[property:array data]</h3>
  29. <p>The JSON data passed in the constructor.</p>
  30. <h2>Methods</h2>
  31. <h3>[method:null generateShapes]( [param:String text], [param:Float size] )</h3>
  32. <p>
  33. [page:String text] -- string of text.<br />
  34. [page:Float size] -- (optional) scale for the [page:Shape Shapes]. Default is *100*.<br />
  35. Creates an array of [page:Shape Shapes] representing the text in the font.
  36. </p>
  37. <h2>Source</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>