Function: loadFont()
function loadFont(fontPath, fontFamily): Promise<Font>;
Defined in: text.ts:17
Import a font in the text system. If the font family is not defined it will set its name as "default"
The font should be in TTF
Parameters
fontPath
string
fontFamily
string
= "default"
Returns
Promise
<Font
>