Re: convert: unable to read font
Ryan Schmidt <[email protected]> Thu, 26 Feb 2009 18:00:22 -0600
| Newsgroups | gmane.comp.video.image-magick.bugs |
|---|---|
| Message-ID | <[email protected]> |
On Feb 26, 2009, at 07:18, [email protected] wrote: >> ImageMagick seems to get some bad information about where fonts are >> on my system. > > The ImageMagick configure script attempts to determine where the > Ghostscript > fonts are located on your system by checking well known locations > and running > the gs (or gsc) program itself to report the location. It updates > the path > in the type-ghostscript.xml file with what it discovers. You can > specify > the path with the --with-gs-font-dir configure command line script > option. > And of course you can edit type-ghostscript.xml to specify the > location. > > Run this command: > > cd ImageMagick-6.* > ./configure > > Now take a look at config/type-ghostscript.xml. Is the font path set > correctly? The file contains entries like: <type name="AvantGarde-Book" fullname="AvantGarde Book" family="AvantGarde" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/mp/share/ghostscript/fonts/ a010013l.afm" glyphs="/mp/share/ghostscript/fonts/a010013l.pfb"/> There is a directory /mp/share/ghostscript/fonts but it does not contain a file a010013l.pfb. I located that file on my system in the directory /mp/share/fonts/urw- fonts. Looking through the logic in configure.ac, if I do not specify --with- gs-font-dir, then (on Mac OS X / Linux) it checks each of these directories ${prefix}/share/ghostscript/fonts/ /usr/share/fonts/default/Type1/ /usr/share/ghostscript/fonts/ /usr/share/fonts/ghostscript/ /sw/share/ghostscript/fonts /System/Library/Frameworks/Ghostscript.framework/Resources/fonts for a file called a010013l.pfb. It's not in any of those directories on my system. Somehow it seems to fall back to ${prefix}/share/ ghostscript/fonts. Can I have ImageMagick use multiple font paths or must it be a single directory? Can ImageMagick read the various formats of Mac OS X fonts? They're usually in /System/Library/Fonts, /Library/Fonts, /Network/Library/ Fonts and ~/Library/Fonts. It seems that ImageMagick creates a catalog of available fonts at install time? What if the user adds fonts later?