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