Public function

Signature
function preloadFont(id: string, font: TLTypeFace): Promise<FontFace>
Parameters
NameDescription

id

string

font

TLTypeFace
Returns
Promise<FontFace>
Source

packages/tldraw/src/lib/utils/assets/preload-font.ts

PreferencesGroupPrintItem