One normalized entry stored in the runtime font registry.

interface AsukaRegisteredFont {
    cssUrl?: string;
    error?: string;
    family: string;
    format?:
        | "woff2"
        | "woff"
        | "ttf"
        | "otf";
    id: string;
    loaded?: boolean;
    loading?: boolean;
    source: AsukaFontSource;
    style?: "italic" | "normal";
    styles?: ("italic" | "normal")[];
    url?: string;
    weight?: string | number;
    weights?: (string | number)[];
}

Properties

cssUrl?: string

Optional stylesheet URL.

error?: string

Optional load error message.

family: string

CSS font-family name.

format?:
    | "woff2"
    | "woff"
    | "ttf"
    | "otf"

Font file format.

id: string

Stable registry id.

loaded?: boolean

Whether the font has already been loaded.

loading?: boolean

Whether the font is currently loading.

Font origin.

style?: "italic" | "normal"

Default style advertised by the font.

styles?: ("italic" | "normal")[]

Supported font styles.

url?: string

Optional direct font file URL.

weight?: string | number

Default weight advertised by the font.

weights?: (string | number)[]

Supported font weights.