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