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-11-12
(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";
}
?>