Skip to main content

Function: loadFont()

function loadFont(
fontPath,
fontFamily?,
force?): Promise<Font>;

Defined in: packages/replicad/src/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 | ArrayBuffer

fontFamily?​

string = "default"

force?​

boolean = false

Returns​

Promise<Font>