Documentation

UI::LoadFont

Function

Font@ UI::LoadFont(const string&in filename, float size = 16.0f)

Loads a font for use in the UI API.

string filename

The path of the font to load. Must be relative to the root of your plugin, the user fonts folder, or Openplanet's own fonts folder.

float size

The legacy size of the font in pixels. This is only used when calling UI::PushFont() without a size.

Returns UI::Font@
Deprecated
Font@ UI::LoadFont(const string&in filename, float size, const uint[]@, bool ba = false, bool bb = false, bool bc = false)

Loads a font for use in the UI API.

string filename

The path of the font to load. Must be relative to the root of your plugin, the user fonts folder, or Openplanet's own fonts folder.

float size

The legacy size of the font in pixels. This is only used when calling UI::PushFont() without a size.

const uint[]@

bool ba

bool bb

bool bc

Returns UI::Font@
Deprecated
Font@ UI::LoadFont(const string&in filename, float size, int minChars, int maxChars, bool = false, bool = false, bool = false)

Loads a font for use in the UI API. Consider using the first LoadFont overload instead of this one, as it is slightly simpler.

string filename

The path of the font to load. Must be relative to the root of your plugin, the user fonts folder, or Openplanet's own fonts folder.

float size

The legacy size of the font in pixels. This is only used when calling UI::PushFont() without a size.

int minChars

int maxChars

bool

bool

bool

Returns UI::Font@