Project

General

Profile

Actions

$font » History » Revision 3

« Previous | Revision 3/9 (diff) | Next »
Per Amundsen, 08/10/2015 09:14 AM


Added in 1.9.6

$font(N/name, t)

Lists installed fonts.

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, else $false.
t - List only truetype fonts.

Example

; 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
}

Updated by Per Amundsen over 9 years ago · 3 revisions

Also available in: PDF HTML TXT