Difference between revisions of "Font:getWidth"

(Fixes type of line)
m (ambiguity.)
Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|string|line|A line of text.}}
+
{{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