in reply to Re: Annotate with Image::Magick
in thread Annotate with Image::Magick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Annotate with Image::Magick
by polettix (Vicar) on Nov 11, 2007 at 20:54 UTC | |
As you can see, TrueType fonts are welcome (you can find some here if you don't have one already). Flavio | [reply] [d/l] |
by JayBee (Scribe) on Nov 11, 2007 at 21:59 UTC | |
That's they way to do it! Looks like, I needed a guide to where the fonts are: I found a working one here: '/usr/share/fonts/hebrew/Aharoni-Book.pfa' There are others with '.afm' extension, that don't seem to work, but who cares, I'm Excited as long as even '.pfa' works! Whoohoo (8D | [reply] |
by polettix (Vicar) on Nov 11, 2007 at 22:47 UTC | |
(Re-)Looking at the docs, I (re-)saw that it's possible to have a list of the known-of fonts like this: So I did have those fonts "installed" in some way or another. But still I was unable to use them. An independent check with the montage program, on the other hand, showed that these fonts are known to it and that it could actually use them. So they also had to be somewhere. By the way, you can ask the list of fonts like this: Note the line: this is the file where the "known fonts" are configured. Then I suddenly remembered that to install Image::Magick you can't go through CPAN, but you have to recompile the whole ImageMagick... click! The ImageMagick programs I'm using are those that came with my Linux distro, but the Image::Magick Perl stuff isn't. So, I went where I installed this recompiled IM (in /opt/ImageMagick), and used the path above to look for the font configuration file, which happens to be in /opt/ImageMagick/lib/ImageMagick-<version>/config. The file was called a bit differently - xml extension instead of mgk - but the format was the same. Except that the paths inside were all wrong! Well, it was easy at this point. I simply copied the type-ghostscript.mgk file from the old IM to the type-ghostscript.xml file in the new IM, and voilą - "standard" fonts work now, even without giving the full path. Due to the Image::Magick installation process, I suspect that you could suffer from a similar problem. Hope this helps! Flavio | [reply] [d/l] [select] |