ImageMagick 可以用给定的字体将文本绘制到图片中,我如何才能看到我的系统的所有可用字体?
取决于您的 imagemagick 版本:
convert -list type # for IM older than v6.3.5-7
convert -list font # for newer versions
输出格式也改变了......
-- 如果上面的命令没有产生任何结果,则更新 OsX(Charles Merriam 的回答):
有关包含说明的完整教程,请参阅http://gothick.org.uk/2008/03/14/using-os-x-fonts-in-imagemagick/ http://gothick.org.uk/2008/03/14/using-os-x-fonts-in-imagemagick/其余的&tldr:
# use fondu to convert fonts and update locatedb
sudo port install fondu
cd /usr/local/share/fonts/
fondu /Library/Fonts/*.dfont
/etc/periodic/weekly/310.locate
# generate imagemagick type.xml
cd ~
mkdir ~/.magick
wget http://www.imagemagick.org/Usage/scripts/imagick_type_gen
perl imagick_type_gen > ~/.magick/type.xml
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)