Type Alias FontFile

FontFile: {
    type: "file";
    blob: BlobInput;
}

FontFile provides a quick way to add a single additional font to the system. The system will load and scan all provided FontFiles to extract all the required metadata during initialization.

For a production system we recommend building a FontIndex of all available fonts, which enables the system to load only fonts that are actually needed.

{ type:'file', blob: fetch('/fonts/awesome.ttf') }