Documentation

UI::LoadSystemFont

Function

Font@ UI::LoadSystemFont(const string&in filename)

Loads a font from the system for use in the UI API. Unlike LoadFont(), this function returns null when the font is not found. The system fonts may be different for every user across different operating systems and platforms.

string filename

The filename of the font to load. Must be in C:\Windows\Fonts. For example: comic.ttf

Returns UI::Font@