Capítulo 549 de 859
Class representing a font.
Constructor
| Signature |
|---|
new Font( data : Object ) |
Properties
| Property | Description |
|---|---|
.data : Object | The font data as JSON. |
.isFont : boolean (readonly) | This flag can be used for type testing. |
Methods
| Method | Description |
|---|---|
.generateShapes( text : string, size : number, direction : string ) : Array.<Shape> | Generates geometry shapes from the given text and size. The result of this method should be used with ShapeGeometry to generate the actual geometry data. |