loadFont(name: string, src: string | BinaryData, opt?: LoadFontOpt): Asset<FontData>
Load a font (any format supported by the browser, e.g. ttf, otf, woff).since
v3000.0
// load a font from a .ttf file loadFont("frogblock", "fonts/frogblock.ttf")
since
v3000.0
// load a font from a .ttf file loadFont("frogblock", "fonts/frogblock.ttf")
Assets
Components
Component Types
Input
Events
Info
Math
Misc
Draw
Level
Plugins
Button Bindings