$font » History » Version 3
Per Amundsen, 08/10/2015 09:14 AM
1 | 1 | Per Amundsen | _Added in 1.9.6_ |
---|---|---|---|
2 | |||
3 | *$font(N/name, t)* |
||
4 | |||
5 | Lists installed fonts. |
||
6 | |||
7 | *Parameters* |
||
8 | |||
9 | 2 | 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, else [[$false]]. |
10 | 1 | Per Amundsen | t - List only truetype fonts. |
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> |