load

fun load(path: String): Font

Loads a font from the specified path.

Return

The loaded font.

Parameters

path

The path to the font file, relative to appDir.


fun load(file: File): Font

Loads a font from the specified file.

Return

The loaded font.

Parameters

file

The file to load the font from.