Project

General

Profile

$font » History » Revision 7

Revision 6 (Per Amundsen, 08/12/2015 06:47 PM) → Revision 7/9 (Per Amundsen, 01/14/2017 08:21 PM)

_Added in 1.9.6_ 

 *$font(N|name, t)* 

 Returns the Nth installed font. 

 *Parameters* 

 N|name - Get the name of the    Nth font, if N is 0, returns number of fonts. If a font name is entered, returns [[$true]] if the font is installed, otherwise [[$false]]. 
 t - List only truetype fonts. (AdiIRC only) 

 *Example* 

 <pre> 
 ; Get number of installed fonts. 
 //echo -ag $font(0) 

 ; Check if 'Verdana' is installed. 
 if ($font(Verdana)) { 
   echo -ag Verdana is installed 
 } 
 else { 
   echo -ag Verdana is not installed 
 } 
 </pre>