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


© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Font:getWidth