Classes
FontFace
Defines the source of a font face, either a URL to an external resource or a
buffer, and font properties such as style
, weight
, and so on. For URL
font sources it allows authors to trigger when the remote font is fetched
and loaded, and to track loading status.
See
https://developer.mozilla.org/docs/Web/API/FontFace
Implements
Constructors
new FontFace()
new FontFace(family
, source
, descriptors
): FontFace
Parameters
Parameter | Type |
---|---|
family | string |
source | string | BufferSource |
descriptors | FontFaceDescriptors |
Returns
Properties
Property | Modifier | Type |
---|---|---|
ascentOverride | public | string |
descentOverride | public | string |
display | public | FontDisplay |
family | public | string |
featureSettings | public | string |
lineGapOverride | public | string |
loaded | readonly | Promise <FontFace > |
status | readonly | FontFaceLoadStatus |
stretch | public | string |
style | public | string |
unicodeRange | public | string |
weight | public | string |
Methods
load()
Returns
Implementation of
globalThis.FontFace.load