2
0

Font.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. <h3>[property:Boolean isFont]</h3>
  31. <p>
  32. Used to check whether this or derived classes are fonts. Default is *true*.<br /><br />
  33. You should not change this, as it used internally by the renderer for optimisation.
  34. </p>
  35. <h2>Methods</h2>
  36. <h3>[method:null generateShapes]( [param:String text], [param:Float size] )</h3>
  37. <p>
  38. [page:String text] -- string of text.<br />
  39. [page:Float size] -- (optional) scale for the [page:Shape Shapes]. Default is *100*.<br />
  40. Creates an array of [page:Shape Shapes] representing the text in the font.
  41. </p>
  42. <h2>Source</h2>
  43. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  44. </body>
  45. </html>