loadFont

fun loadFont(font: File): Boolean

Loads a font file and registers it in the JFX graphics system.

Return

A boolean weather the file could be loaded or not

Parameters

font

The font file off type .ttf which is to be loaded

Throws

if the file doesn't exist

if the file can't be read


fun loadFont(inputStream: InputStream): Boolean

Loads a font file input stream and registers it in the JFX graphics system.

Return

A boolean weather the file could be loaded or not

Parameters

inputStream

The font inputStream which is to be loaded

Throws

if the file doesn't exist

if the file can't be read


fun loadFont(path: String): Boolean

Loads a font file and registers it in the JFX graphics system.

Return

A boolean weather the file could be loaded or not

Parameters

path

The font file path in the resources folder which is to be loaded

Throws

if the file doesn't exist

if the file can't be read