Documentation

UI::PushFont

Function

void UI::PushFont(Font@ font)

Pushes a font to the stack using the font's legacy size. This is the equivalent to calling UI::PushFont(font, font.FontSize). Note that this overload will always push the legacy size of the font as the font size, it will not leave the font size as-is.

UI::Font@ font

The font to push. Set this to null to leave the font unchanged.

void UI::PushFont(Font@ font, float size)

Pushes a font and/or font size to the stack.

UI::Font@ font

The font to push. Set this to null to leave the font unchanged.

float size

The font size to push. Set this to 0 to leave the font size unchanged.