get_text_width


Description:

public int get_text_width (string? text)

Gets the width of a string using the specified font.

The string must contain valid UTF-8. Check using validate first if text is from an unknown source.

Parameters:

this

the font

text

the text

Returns:

the width