PHP 8.3.4 Released!

Gmagick::queryfonts

(PECL gmagick >= Unknown)

Gmagick::queryfontsReturns the configured fonts

Descrição

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

Returns fonts supported by Gmagick.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

The Gmagick object on success

Erros/Exceções

Lança uma exceção GmagickException em caso de erro.

add a note

User Contributed Notes 1 note

up
0
Mathew Oransky
14 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