Available since LÖVE 0.7.0
This function is not supported in earlier versions.
Gets formatting information for text, given a wrap limit.
This function accounts for newlines correctly (i.e. '\n').
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
width, wrappedtext = Font:getWrap( text, wraplimit )
string text
number wraplimit
number width
table wrappedtext
Removed in LÖVE 0.10.0
This variant is not supported in that and later versions.
width, lines = Font:getWrap( text, wraplimit )
string text
number wraplimit
number width
number lines
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Font:getWrap