An example of how to get the fonts available.
<?php
$image = new Gmagick();
$fonts = $image->queryfonts();
foreach($fonts as $font){
echo $font."\n";
}
?>
PHP - Manual: Gmagick::queryfonts
2024-12-22
(PECL gmagick >= Unknown)
Gmagick::queryfonts — Returns the configured fonts
$pattern
= "*"): arrayReturns fonts supported by Gmagick.
此函数没有参数。
The Gmagick object on success
错误时抛出 GmagickException。
An example of how to get the fonts available.
<?php
$image = new Gmagick();
$fonts = $image->queryfonts();
foreach($fonts as $font){
echo $font."\n";
}
?>