Difference between revisions of "Font:getWidth"

m
Line 13: Line 13:
 
* [[parent::Font]]
 
* [[parent::Font]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Determines the horizontal size a line of text needs.  
+
{{#set:Description=Determines the horizontal size a line of text needs. }}
}}
+
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|Font:getWidth}}
 
{{i18n|Font:getWidth}}

Revision as of 11:54, 25 March 2011

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


Other Languages