Imagick::queryFonts
(PECL imagick 2, PECL imagick 3)
Imagick::queryFonts — 設定したフォントを返す
説明
public static 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;?>