Properties
.data : Object
The font data as JSON.
.isFont : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.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.
| text |
The text. |
| size |
The text size. Default is |
| direction |
Char direction: ltr(left to right), rtl(right to left) & tb(top bottom). Default is |
- Returns: An array of shapes representing the text.