I've been trying to figure out how Image Magick and PerlMagick determine what fonts are available for annotating. I've found the .xml files in the config directory, and I've played around with it, and now I've successfully confused myself....
When I execute 'convert -list font', I get a list of fonts, which I assume are fonts Image Magick knows about. This list doesn't contain all of the fonts in the .xml files in the config directory however. The command: convert -background white -fill black -font Mistral-Regular -pointsize 24 label:ABC fnt.jpg generates a .jpg with the correct font. Mistral-Regular is a font listed from the convert -list font command. The command: convert -background white -fill black -font Helvetica-Bold -pointsize 24 label:ABC fnt.jpg generates a message 'unable to read font'. The .jpg is produced, but not with the correct font. Helvetica-Bold is not listed from the convert -list font command. The command: convert -background white -fill black -font Helvetica- -pointsize 24 label:ABC fnt.jpg generates 3 'unable to read font' messages. However, the .jpg is produced with the correct font. Helvetica is not listed from the convert -list font command either. All of the fonts used above produce annotation using the correct font when I use the annotate function in the PerlMagick API. Of the three fonts used above, Mistral-Regular is not in any of the .xml files, but annotation does use the correct font. Now, for the system: This is running on SuSE Enterprise Server 10, patch level 1 using kernel 2.6.16.46-0.12-smp. On this machine, I find both ImageMagick and GraphicsMagick directories in the /usr/local/lib directory. There are: GraphicsMagick-1.1.10 GraphicsMagick-1.2.5 ImageMagick-6.3.7 ImageMagick-6.4.2 I'm assuming this is NOT a good thing - but I really am not sure. Clearly I'm missing something. Sorry for the rambling post, but if anyone can point me in the right direction, I would greatly appreciate it!! Thanks! Ted _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
