W3cubDocs

/LÖVE

Font:getWidth

Determines the horizontal size a line of text needs. Does not support line-breaks.

Function

Synopsis

width = Font:getWidth( line )

Arguments

string line
A string.

Returns

number width
The width of the line.

See Also


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