TextGeometry.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../../list.js"></script>
  6. <script src="../../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../../page.css" />
  8. </head>
  9. <body>
  10. [page:ExtrudeGeometry] &rarr;
  11. <h1>[name]</h1>
  12. <div class="desc">This object creates an 3D object of text as a single object.</div>
  13. <h2>Constructor</h2>
  14. <h3>[name]([page:String text], [page:Object parameters])</h3>
  15. <div>
  16. text — The text that needs to be shown. <br />
  17. parameters — Object that can contain the following parameters.
  18. <ul>
  19. <li>size — Float. Size of the text.</li>
  20. <li>height — Float. Thickness to extrude text. Default is 50.</li>
  21. <li>curveSegments — Integer. Number of points on the curves.</li>
  22. <li>font — String. Font name.</li>
  23. <li>weight — String. Font weight (normal, bold).</li>
  24. <li>style — String. Font style (normal, italics).</li>
  25. <li>bevelEnabled — Boolean. Turn on bevel. Default is False.</li>
  26. <li>bevelThickness — Float. How deep into text bevel goes. Default is 10.</li>
  27. <li>bevelSize — Float. How far from text outline is bevel. Default is 8.</li>
  28. </ul>
  29. </div>
  30. <h2>Source</h2>
  31. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  32. </body>
  33. </html>