loadFont

Loads a font by its path or retrieves it from the font cache.

Font
loadFont
(
string path
)

Parameters

path
Type: string

The path of the font. Note: If the path is specified as a font-name, it must be prefixed with its proper font-style suffix. Use retrieveFont for easier access.

Return Value

Type: Font

The font loaded from its path or name.

Meta