Namespace: font
Functions
getFontFamily
▸ getFontFamily(fontPath
): string
Get a generated font family based on the font path.
Parameters
Name | Type | Description |
---|---|---|
fontPath |
string |
The path of the font file |
Returns
string
loadFontFromDataUrl
▸ loadFontFromDataUrl(name
, dataUrl
): Promise
<void
>
Asynchronously load a font from a data URL.
Parameters
Name | Type | Description |
---|---|---|
name |
string |
Font filename / path |
dataUrl |
string |
Font data |
Returns
Promise
<void
>