xref: /imagick/util/check_fonts.php (revision 77417339)
1<?php
2
3
4
5$output = '';
6$output .= "Fonts that match 'Helvetica*' are:<br>";
7
8$fontList = \Imagick::queryFonts();
9
10//var_dump($fontList);
11
12if (count($fontList) === 0) {
13    echo "There are no fonts available, so something is wrong.\n";
14    exit(-1);
15}
16
17printf("There are %d fonts:\n", count($fontList));
18
19foreach ($fontList as $fontName) {
20    echo  "  " . $fontName . "\n";
21}
22
23