Font:getWrap
Available since LÖVE 0.7.0 |
This function is not supported in earlier versions. |
Returns how many lines text would be wrapped to. This function accounts for newlines correctly (i.e. '\n')
Function
Synopsis
width, lines = Font:getWrap(text, width)
Arguments
Returns
-
number width
- The actual width the wrapped text.
-
number lines
- The number of lines text was wrapped to.
See Also
Category: