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.

Implements

Constructors

  • Parameters

    Returns FontFace

Properties

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

Methods