$height

From Scriptwiki
Revision as of 22:35, 29 July 2014 by Cail (talk | contribs) (Added page.)

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

Returns height of text in pixels for the specified font.

$height(text,font,size)

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

Example

$height(Lorem ispum,Arial,12)

Returns 16.


This can be useful if you need to add rows of text in a picture window with previously undetermined font.

See Also