Difference between revisions of "Font:getWidth"
(Fixes type of line) |
m (ambiguity.) |
||
Line 7: | Line 7: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|string|line|A | + | {{param|string|line|A string.}} |
=== Returns === | === Returns === | ||
{{param|number|width|The width of the line.}} | {{param|number|width|The width of the line.}} |
Revision as of 18:52, 26 September 2012
Determines the horizontal size a line of text needs. Does not support line-breaks.
Function
Synopsis
width = Font:getWidth( line )
Arguments
string line
- A string.
Returns
number width
- The width of the line.
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