Documentation

Draw::MeasureString

Function

vec2 Draw::MeasureString(const string&in str, UI::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