Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Gets the width of the text in pixels.
width = Text:getWidth( )
None.
number width
Gets the width of a specific sub-string that was previously added to the Text object.
width = Text:getWidth( index )
number width
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Text:getWidth