I'm trying to get Imagick to list all fonts in PHP. I found the following code in the PHP.net manual:
$fontList = \Imagick::queryFonts("*");
foreach ($fontList as $fontName) {
$output .= '<li>'. $fontName."</li>";
}
return $output;
Unfortunately this doesn't work for me. I get the following PHP error which I don't understand:
Strict Standards: Non-static method Imagick::queryfonts() should not be called statically
Anyone have a suggestion? thanks!