new Font()
A Font class to store font information.
Name | Type | Description |
---|---|---|
family | string | The font family. |
size | number | The font size. |
style | Font. | The font style. |
weight | Font. | The font weight. |
- Source
Members
(static, readonly) STYLE :string
Font style.
Type:
Properties- string
Name | Type | Description |
---|---|---|
NORMAL | string | |
ITALIC | string | |
OBLIQUE | string |
- Source
(static, readonly) WEIGHT :string
Font weight.
Type:
Properties- string
Name | Type | Description |
---|---|---|
NORMAL | string | |
BOLD | string | |
BOLDER | string | |
LIGHTER | string |
- Source
Methods
toString() → {string}
Returns the font as a string.
- Source
Returns:
The font as a string.
- Type:
- string