Documentation

UI::CalcWordWrapPosition

Function

int UI::CalcWordWrapPosition(float size, const string&in text, float wrap_width, int text_offset = 0, Font@ font = null)

Calculates the word wrapping position of the given string.

float size

The font size. See also UI::GetFontSize().

string text

float wrap_width

int text_offset

UI::Font@ font

Returns int