loadFont(name: string, src: string | BinaryData, opt?: LoadFontOpt): Asset<FontData>
Load a font (any format supported by the browser, e.g. ttf, otf, woff).
param
name- The asset name.
// load a font from a .ttf file loadFont("frogblock", "fonts/frogblock.ttf");
returns
The asset data.
since
v3000.0