我知道我已经安装了这种字体,当我列出ImageMagick可以看到的所有点时,它就会显示出来,但是无论我将这段代码中的字体更改为什么,字体都不会在实际渲染的图像中改变:>
convert new-again.png -size 1800x420 -font Din-Condensed-Bold
-pointsize 84 -background 'transparent' -fill black -gravity center
caption:'Faerie Dragons love hot apple pies and also cold apple pies!'
-gravity south -composite background1.png
例如,我尝试过使用其他字体名称,例如Corsiva,并且它不会改变。
这是我的版本信息:
Version: ImageMagick 6.9.4-1 Q16 x86_64 2016-10-13 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl openexr pangocairo png ps rsvg tiff webp wmf x xml zlib
字体列表很大,所以我将粘贴该列表中的部分列表。 Din-Condensed-Bold字体是我要使用的字体:
Path: /etc/ImageMagick-6/type-ghostscript.xml
Font: AvantGarde-Book
family: AvantGarde
style: Normal
stretch: Normal
weight: 400
glyphs: /usr/share/fonts/default/Type1/a010013l.pfb
Font: AvantGarde-BookOblique
family: AvantGarde
style: Oblique
stretch: Normal
weight: 400
glyphs: /usr/share/fonts/default/Type1/a010033l.pfb
Path: System Fonts
Font: Century-Schoolbook-L-Bold
family: Century Schoolbook L
style: Normal
stretch: Normal
weight: 700
glyphs: /usr/share/fonts/default/Type1/c059016l.pfb
Font: Century-Schoolbook-L-Bold-Italic
family: Century Schoolbook L
style: Italic
stretch: Normal
weight: 700
glyphs: /usr/share/fonts/default/Type1/c059036l.pfb
Font: Century-Schoolbook-L-Italic
family: Century Schoolbook L
style: Italic
stretch: Normal
weight: 400
glyphs: /usr/share/fonts/default/Type1/c059033l.pfb
Font: Century-Schoolbook-L-Roman
family: Century Schoolbook L
style: Normal
stretch: Normal
weight: 500
glyphs: /usr/share/fonts/default/Type1/c059013l.pfb
Font: DIN-Condensed-Bold
family: DIN Condensed
style: Normal
stretch: Condensed
weight: 700
glyphs: /root/.fonts/DIN Condensed Bold.ttf