Font.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ]
  18. </p>
  19. <h2>Constructor</h2>
  20. <h3>[name]( data )</h3>
  21. <p>
  22. data -- JSON data representing the font.<br /><br />
  23. This constructor creates a new [name], which is an array of [page:Shape Shapes].
  24. </p>
  25. <h2>Properties</h2>
  26. <h3>[property:Array data]</h3>
  27. <p>The JSON data passed in the constructor.</p>
  28. <h2>Methods</h2>
  29. <h3>[method:null generateShapes]( [param:String text], [param:Float size] )</h3>
  30. <p>
  31. [page:String text] -- string of text.<br />
  32. [page:Float size] -- (optional) scale for the [page:Shape Shapes]. Default is *100*.<br />
  33. Creates an array of [page:Shape Shapes] representing the text in the font.
  34. </p>
  35. <h2>Source</h2>
  36. <p>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </p>
  39. </body>
  40. </html>