loadFont(name: string, src: string | BinaryData, opt?: LoadFontOpt): Asset<FontData>

Load a font (any format supported by the browser, e.g. ttf, otf, woff).

paramname- The asset name.

// load a font from a .ttf file
loadFont("frogblock", "fonts/frogblock.ttf");

returnsThe asset data.

sincev3000.0