Skip to content

@modoki/engine / index / loadFont

Function: loadFont() ​

loadFont(path): Promise<string>

Load a single font file and register it with the browser. Returns the family name. Concurrent calls for the same path share one in-flight load.

Parameters ​

path ​

string

Returns ​

Promise<string>

Built with Modoki.