Imagick::queryFonts
(PECL imagick 2.0.0)
Imagick::queryFonts — 設定したフォントを返す
説明
Imagick::queryFonts
([ string
$pattern = "*"
] ) : array設定したフォントを返します。
パラメータ
-
pattern -
クエリパターン。
返り値
フォントを含む配列を返します。
エラー / 例外
エラー時に ImagickException をスローします。
例
例1 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;
?>