From Scriptwiki
Revision as of 05:55, 11 August 2008 by Daveoh (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns width of text in pixels for the specified font.


If B is non-zero, the font is bold, if C is non-zero, control codes are processed. Both B and C are optional.

Note: If you use a negative number for the font size, it will match the size of fonts in the font dialog.


$width(Lorem ispum,Arial,12)

Returns 74.

See Also