Descriptors defining a font face.

Used when selecting a font face from a font family.

Based on the @font-face CSS rule. Not all descriptors are supported by all text renderers.

interface TrFontFaceDescriptors {
    display?: FontDisplay;
    featureSettings?: string;
    stretch:
        | "normal"
        | "condensed"
        | "expanded"
        | "extra-condensed"
        | "extra-expanded"
        | "semi-condensed"
        | "semi-expanded"
        | "ultra-condensed"
        | "ultra-expanded";
    style: "normal" | "italic" | "oblique";
    unicodeRange?: string;
    weight: number | "bold" | "normal";
}

Properties

display?: FontDisplay
featureSettings?: string
stretch:
    | "normal"
    | "condensed"
    | "expanded"
    | "extra-condensed"
    | "extra-expanded"
    | "semi-condensed"
    | "semi-expanded"
    | "ultra-condensed"
    | "ultra-expanded"
style: "normal" | "italic" | "oblique"
unicodeRange?: string
weight: number | "bold" | "normal"