Difference between revisions of "Font:getWrap"
(I noticed this was missing, so I filled it in.) |
|||
Line 1: | Line 1: | ||
{{newin|[[0.7.0]]|070|type=function}} | {{newin|[[0.7.0]]|070|type=function}} | ||
Returns how many lines text would be wrapped to. | Returns how many lines text would be wrapped to. | ||
+ | This function accounts for newlines correctly (i.e. '\n') | ||
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Revision as of 17:36, 25 September 2011
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
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
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info