load_from_file


Description:

public static Font load_from_file (string filename) throws Error

Loads a font from a file.

Only loads the first font face in the file.

Parameters:

filename

the file path

Returns:

the font or null if there was an error such as the font was not found.