PHP 7.0.6 Released

Gmagick::queryfonts

(PECL gmagick >= Unknown)

Gmagick::queryfontsReturns the configured fonts

Description

public array Gmagick::queryfonts ([ string $pattern = "*" ] )

Returns fonts supported by Gmagick.

Parameters

This function has no parameters.

Return Values

The Gmagick object on success

Errors/Exceptions

Throws an GmagickException on error.

User Contributed Notes

Mathew Oransky
6 years ago
An example of how to get the fonts available.
<?php
$image
= new Gmagick();
$fonts = $image->queryfonts();
foreach(
$fonts as $font){
  echo
$font."\n";
}
?>
To Top