Imagick::queryFonts
PHP function
Edit on GitHub ✎
(PECL imagick 2, PECL imagick 3)
Returns the configured fonts
Description
Imagick::queryFonts(string $pattern = "*"): array
Returns the configured fonts.
Parameters
patternThe query pattern
Return Values
Returns an array containing the configured fonts.
Errors/Exceptions
Throws
Examples
php
<?php
$output = '';
$output .= "Fonts that match 'Helvetica*' are:<br/>";
$fontList = \Imagick::queryFonts("Helvetica*");
foreach ($fontList as $fontName) {
$output .= '<li>'. $fontName."</li>";
}
return $output;
?>