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.

Hierarchy

  • FontFace

Implements

Constructors

  • Parameters

    • family: string
    • source: string | BufferSource
    • descriptors: FontFaceDescriptors = {}

    Returns FontFace

Properties

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

Methods

Generated using TypeDoc