Project

General

Profile

$height » History » Revision 2

Revision 1 (Per Amundsen, 08/10/2015 06:53 AM) → Revision 2/3 (Per Amundsen, 04/02/2020 04:36 PM)

_Added in 1.9.1_ 

 *$height(text,font,size,[B],[C],[D])* *$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. 
 [B] - If B is non-zero, the font is bold. (optional) 
 [C] - If C is non-zero, control codes are processed. (optional) 
 [D] - TODO 

 *Example* 

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