Project

General

Profile

Actions

$height » History » Revision 1

Revision 1/3 | Next »
Per Amundsen, 08/10/2015 06:53 AM


Added in 1.9.1

$height(text,font,size)

Returns height of text in pixels for the specified font.

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

Parameters

text - Text to measure.
font - Font to measure.
size - Font size to measure.

Example

; Measure the height of text 'Hello World' using font 'Verdana 9'.
//echo -ag $height(Hello world, Verdana, 9)

Updated by Per Amundsen almost 9 years ago · 1 revisions

Also available in: PDF HTML TXT