One self-hosted custom font exposed in the runtime font registry.

interface AsukaCustomFontConfig {
    cssUrl?: string;
    family: string;
    format?:
        | "woff2"
        | "woff"
        | "ttf"
        | "otf";
    id?: string;
    style?: "italic" | "normal";
    url?: string;
    weight?: string | number;
}

Properties

cssUrl?: string

Optional stylesheet URL when the font is defined through CSS.

family: string

CSS font-family name.

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

Font file format used by AsukaCustomFontConfig.url.

id?: string

Optional stable font id.

style?: "italic" | "normal"

Default style advertised by the font.

url?: string

Direct font file URL.

weight?: string | number

Default weight advertised by the font.