Class 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.



  • Parameters

    Returns FontFace


ascentOverride: string
descentOverride: string
display: FontDisplay
family: string
featureSettings: string
lineGapOverride: string
loaded: Promise<FontFace>
stretch: string
style: string
unicodeRange: string
weight: string