new Font()
Font class for Text rendering configuration.
| Name | Type | Description |
|---|---|---|
size | number | Font size in pixels. |
family | string | Font family name. |
style | string | Font style (normal, bold, italic). |
- Source
Methods
toString() → {string}
Convert font to CSS font string.
- Source
Returns:
CSS font string.
- Type:
- string