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 | Description |
---|---|---|---|
ascentOverride | public | string | MDN Reference |
descentOverride | public | string | MDN Reference |
display | public | FontDisplay | MDN Reference |
family | public | string | MDN Reference |
featureSettings | public | string | MDN Reference |
lineGapOverride | public | string | MDN Reference |
loaded | readonly | Promise <FontFace > | MDN Reference |
status | readonly | FontFaceLoadStatus | MDN Reference |
stretch | public | string | MDN Reference |
style | public | string | MDN Reference |
unicodeRange | public | string | MDN Reference |
weight | public | string | MDN Reference |
Methods
load()
Returns
Implementation of
globalThis.FontFace.load