Project

General

Profile

$height » History » Version 1

Per Amundsen, 08/10/2015 06:53 AM

1 1 Per Amundsen
_Added in 1.9.1_
2
3
*$height(text,font,size)*
4
5
Returns height of text in pixels for the specified font.
6
7
_If you use a negative number for the font size, it will match the size of fonts in the font dialogs._
8
9
*Parameters*
10
11
text - Text to measure.
12
font - Font to measure.
13
size - Font size to measure.
14
15
*Example*
16
17
<pre>
18
; Measure the height of text 'Hello World' using font 'Verdana 9'.
19
//echo -ag $height(Hello world, Verdana, 9)
20
</pre>