File: Font.md | Updated: 11/15/2025
Class representing a font.
Constructs a new font.
data | The font data as JSON.
---|---
The font data as JSON.
This flag can be used for type testing.
Default is true.
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 100.
direction | Char direction: ltr(left to right), rtl(right to left) & tb(top bottom). Default is 'ltr'.
Returns: An array of shapes representing the text.