HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelTutorial Source codeReport an issue
Category
Example

Imagick::queryFonts

← queryFontMetrics   queryFormats →
Returns the configured fonts.
Fonts that match 'Helvetica*' are:
Fonts that match '*' are:
$output = '';
$output .= "Fonts that match 'Helvetica*' are:<br/>";
$fontList = \Imagick::queryFonts("Helvetica*");
foreach ($fontList as $fontName) {
    $output .= '<li>' . $fontName . "</li>";
}
$output .= "Fonts that match '*' are:<br/>";
$fontList = \Imagick::queryFonts("*");
foreach ($fontList as $fontName) {
    $output .= '<li>' . $fontName . "</li>";
}
return $output;