Documentation

UI::MeasureString

Function

vec2 UI::MeasureString(const string&in str, Font@ font = null, float size = 0.0f, float wrapWidth = 0.0f)

Calculates the size that a string will be drawn at.

string str

UI::Font@ font

float size

float wrapWidth

Returns vec2