Difference between revisions of "$height"

From Scriptwiki
Jump to: navigation, search
(Added page.)
 
(No difference)

Latest revision as of 21:35, 29 July 2014

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