Documentation

UI::CalcWordWrapPosition

Function

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

Calculates the word wrapping position of the given string.

float scale

string text

float wrap_width

int text_offset

UI::Font@ font

Returns int