TEXTWIDTH

n = TEXTWIDTH (s)

Returns the text width of string s in pixel.

TXTW is equivalent to TEXTWIDTH.

Example

print textwidth("Hello world")      ' Output: 88
Code samples using TEXTWIDTH