Font.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. <div 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. </div>
  16. <h2>Constructor</h2>
  17. <h3>[name]( data )</h3>
  18. <div>
  19. data -- JSON data representing the font.<br /><br />
  20. This constructor creates a new [name], which is an array of [page:Shape Shapes].
  21. </div>
  22. <h2>Properties</h2>
  23. <h3>[property:array data]</h3>
  24. <div>The JSON data passed in the constructor.</div>
  25. <h3>[property:Boolean isFont]</h3>
  26. <div>
  27. Used to check whether this or derived classes are fonts. Default is *true*.<br /><br />
  28. You should not change this, as it used internally by the renderer for optimisation.
  29. </div>
  30. <h2>Methods</h2>
  31. <h3>[method:null generateShapes]( [page:String text], [page:Float size], [page:Integer divisions] )</h3>
  32. <div>
  33. [page:String text] -- string of text.<br />
  34. [page:Float size] -- (optional) scale for the [page:Shape Shapes]. Default is *100*.<br />
  35. [page:Integer divisions] -- (optional) fineness of the [page:Shape Shapes]. Default is *5*.<br />
  36. Creates an array of [page:Shape Shapes] representing the text in the font.
  37. </div>
  38. <h2>Source</h2>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </body>
  41. </html>