Imagick::queryFonts

(PECL imagick 2.0.0)
Returns the configured fonts
array Imagick::queryFonts ([ string $pattern = "*" ] )

Returns the configured fonts.

Parameters:
pattern

The query pattern

Returns:

Returns an array containing the configured fonts.

Exception:

Throws ImagickException on error.

Examples:
Imagick::queryFonts()
<?php
        $output = '';
        $output .= "Fonts that match 'Helvetica*' are:<br/>";

        $fontList = \Imagick::queryFonts("Helvetica*");
 
        foreach ($fontList as $fontName) {
            $output .= '<li>'. $fontName."</li>";
        }

        return $output;

?>

doc_php
2016-02-24 16:01:14
Comments
Leave a Comment

Please login to continue.