$font » History » Version 7
Per Amundsen, 01/14/2017 08:21 PM
| 1 | 1 | Per Amundsen | _Added in 1.9.6_ |
|---|---|---|---|
| 2 | |||
| 3 | 5 | Per Amundsen | *$font(N|name, t)* |
| 4 | 1 | Per Amundsen | |
| 5 | 6 | Per Amundsen | Returns the Nth installed font. |
| 6 | 1 | Per Amundsen | |
| 7 | *Parameters* |
||
| 8 | |||
| 9 | 5 | Per Amundsen | 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]]. |
| 10 | 7 | Per Amundsen | t - List only truetype fonts. (AdiIRC only) |
| 11 | 3 | Per Amundsen | |
| 12 | *Example* |
||
| 13 | |||
| 14 | <pre> |
||
| 15 | ; Get number of installed fonts. |
||
| 16 | //echo -ag $font(0) |
||
| 17 | |||
| 18 | ; Check if 'Verdana' is installed. |
||
| 19 | if ($font(Verdana)) { |
||
| 20 | echo -ag Verdana is installed |
||
| 21 | } |
||
| 22 | else { |
||
| 23 | echo -ag Verdana is not installed |
||
| 24 | } |
||
| 25 | </pre> |