[page:ExtrudeGeometry] →

[name]

This object creates a 3D object of text as a single object.

Example

[example:webgl_geometry_text geometry / text ]
[example:webgl_geometry_text2 geometry / text2 ]

Constructor

[name]([page:String text], [page:Object parameters])

text — The text that needs to be shown.
parameters — Object that can contains the following parameters.

Available Fonts

TextGeometry uses typeface.js generated fonts. Some existing fonts can be found located in /examples/fonts and must be included in the page.
Font Weight Style File Path
helvetiker normal normal /examples/fonts/helvetiker_regular.typeface.js
helvetiker bold normal /examples/fonts/helvetiker_bold.typeface.js
optimer normal normal /examples/fonts/optimer_regular.typeface.js
optimer bold normal /examples/fonts/optimer_bold.typeface.js
gentilis normal normal /examples/fonts/gentilis_regular.typeface.js
gentilis bold normal /examples/fonts/gentilis_bold.typeface.js
driod sans normal normal /examples/fonts/droid/droid_sans_regular.typeface.js
driod sans bold normal /examples/fonts/droid/droid_sans_bold.typeface.js
droid serif normal normal /examples/fonts/droid/droid_serif_regular.typeface.js
droid serif bold normal /examples/fonts/droid/droid_serif_bold.typeface.js

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]