For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Type Alias DeclaredFontFace

A font file declared by the style, along with the bookkeeping needed to draw with it.

type DeclaredFontFace = {
    family: string;
    loaded?: Promise<boolean>;
    ranges: UnicodeRange[];
    url: string;
}
Index

Properties

family: string

The CSS family name the file is registered under. It is generated rather than taken from the style so that a style cannot restyle the surrounding page by declaring a font face named after one the page uses, and so that each file can be selected on its own.

loaded?: Promise<boolean>

Resolves to whether the file loaded and can be drawn with. Started the first time a codepoint needs this file, so that a style may declare more fonts than any one map ever draws with.

ranges: UnicodeRange[]

The codepoints the style lets this file cover.

url: string

The font file's URL, as written in the style.

Was this helpful?