Function TextWidth(txt$)
The width of text rendered with the active font
Related: TextHeight GetTextSize