Font:getWidth

Determines the maximum width (accounting for newlines) taken by the given string.

Function

Synopsis

width = Font:getWidth( text )

Arguments

string text
A string.

Returns

number width
The width of the text.

See Also


Other Languages