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
type DeclaredFontFace = {
family: string;
loaded?: Promise<boolean>;
ranges: UnicodeRange[];
url: string;
}
family: string;
loaded?: Promise<boolean>;
ranges: UnicodeRange[];
url: string;
}
Properties
family
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.
Optionalloaded
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
The codepoints the style lets this file cover.
url
url: string
The font file's URL, as written in the style.
A font file declared by the style, along with the bookkeeping needed to draw with it.