Difference between revisions of "Font:getWidth"

m (1 revision: Importing from potato (again).)
m
Line 1: Line 1:
 
 
Determines the horizontal size a line of text needs.  
 
Determines the horizontal size a line of text needs.  
 
Does not support line-breaks.
 
Does not support line-breaks.
Line 16: Line 15:
 
{{#set:Description=Determines the horizontal size a line of text needs.  
 
{{#set:Description=Determines the horizontal size a line of text needs.  
 
}}
 
}}
 +
== Other Languages ==
 +
{{i18n|Font:getWidth}}

Revision as of 19:12, 18 November 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

Other Languages