Documentation

nvg::TextBoxBounds

Function

vec2 nvg::TextBoxBounds(float w, const string&in str)

Measures the size of the given text inside of a word wrapping box using the current font settings.

float w

string str

Returns vec2