PHP + ImageMagick / サーバにインストールされている全てのフォント毎に、ダミー文字列を一覧でテキスト画像化したい
現状
フォント名を含む一覧は取得できたのですが、これをループで回して画像出力するにはどうすればよいでしょうか?
exec("convert -list font", $output);
print_r($output);
Array
(
[0] =>
[1] => Path: /usr/lib64/ImageMagick-6.5.4/config/type-ghostscript.xml
[2] => Font: AvantGarde-Book
[3] => family: AvantGarde
[4] => style: Normal
[5] => stretch: Normal
[6] => weight: 400
[7] => glyphs: /usr/share/fonts/default/Type1/a010013l.pfb
[8] => Font: AvantGarde-BookOblique
[9] => family: AvantGarde
[10] => style: Oblique
[11] => stretch: Normal
[12] => weight: 400
[13] => glyphs: /usr/share/fonts/default/Type1/a010033l.pfb
[14] => Font: AvantGarde-Demi
[15] => family: AvantGarde
[16] => style: Normal
[17] => stretch: Normal
[18] => weight: 600
[19] => glyphs: /usr/share/fonts/default/Type1/a010015l.pfb
[20] => Font: AvantGarde-DemiOblique
[21] => family: AvantGarde
[22] => style: Oblique
[23] => stretch: Normal
[24] => weight: 600
[25] => glyphs: /usr/share/fonts/default/Type1/a010035l.pfb
[26] => Font: Bookman-Demi
[27] => family: Bookman
[28] => style: Normal
[29] => stretch: Normal
[30] => weight: 600
[31] => glyphs: /usr/share/fonts/default/Type1/b018015l.pfb
[32] => Font: Bookman-DemiItalic
環境
・CentOS 6.4
・ImageMagick-6.5.4
・PHP 5.4.32