I've been playing image generation on ImageMagick on Ubuntu 9.10. I want to be able to get it to recognize a font so that I may call it by it's "nickname".
I can find the list of fonts ImageMagick recognizes by typing
identify -list font
In that list I see Times-Bold. Therefore
convert -font Times-Bold label:abcdef times.gif
will generate a gif file with the Times New Roman Bold font.
I know I can pass the path to the font instead of it's nickname, but I need to be able to use its nickname so I have less errors when moving from system to system. The font I'm trying to get to work in particular is a true type font called Segoe UI.
I already have Segoe UI installed in my system. If I pass the path to the font it works. But I want to be able to use something like
convert -font Segoe-UI label:abcdef segoe.gif
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…