Difference between revisions of "Font:getWidth"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Determines the horizontal size a line of text needs.
 +
Does not support line-breaks.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 13: Line 14:
 
* [[parent::Font]]
 
* [[parent::Font]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Determines the horizontal size a line of text needs.
 +
}}

Revision as of 16:17, 14 February 2010

Determines the horizontal size a line of text needs. Does not support line-breaks.

Function

Synopsis

width = Font:getWidth( line )

Arguments

number line
A line of text.

Returns

number width
The width of the line.

See Also