Font.html 1.3 KB

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