首先使用命令行列出 ImageMagick 已知的所有字体:
convert.exe -list font
你会看到这样的东西:
Path: /opt/local/etc/ImageMagick/type-ghostscript.xml
Font: AvantGarde-Book
family: AvantGarde
style: Normal
stretch: Normal
weight: 400
glyphs: /opt/local/share/fonts/urw-fonts/a010013l.pfb
Font: AvantGarde-BookOblique
family: AvantGarde
style: Oblique
stretch: Normal
weight: 400
glyphs: /opt/local/share/fonts/urw-fonts/a010033l.pfb
Font: AvantGarde-Demi
family: AvantGarde
style: Normal
stretch: Normal
weight: 600
glyphs: /opt/local/share/fonts/urw-fonts/a010015l.pfb
Font: AvantGarde-DemiOblique
family: AvantGarde
style: Oblique
stretch: Normal
weight: 600
glyphs: /opt/local/share/fonts/urw-fonts/a010035l.pfb
[...]
然后,在从该列表中为 ImageMagick 细读选择字体时,您可以选择:
并且不要尝试只使用family:
ImageMagick 的名称......
如果它们包含任何空格,请务必在任何字体名称或路径周围使用引号!