Whre are my fonts?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
gdtrfb

Whre are my fonts?

Post by gdtrfb »

I'm running IM 5.5.7 on Mac OS X Server 10.2.6. I know, they're both old, but they've been running great for years and if it ain't broke...

So now my question, where are the fonts that I'm using located? How can I figure that out?

When I say

mogrify -font Helvetica -draw 'text 25, 40, "stuff"' ...

Where does that Helvetica font come from?

Eventually I'm going to have to upgrade to the latest version of IM and OS X as we're getting new machines (yeah) and I want to make sure I've got all my fonts that fit properly in all my templates, etc.

Thanks!
--Mark
gdtrfb

Post by gdtrfb »

A quick followup to my original question above...

If I do "identify -list type" or "identify -list Type" both come back empty.

--Mark
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

ImageMagick apparently cannot find its font configuration files or they are empty. Try
  • identify -debug configure -list type
and see where its looking for type.mgk, the font configuration file.
gdtrfb

Post by gdtrfb »

Here's the output from the identify comand:

Code: Select all

[Sol:Drive2/WEB/testout] admin% identify -debug configure -list type
11:54:46 0:01 0.030u 4441 utility.c/IsAccessible/1599/Configure:
  *[Aa]ll* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]ll* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]ll* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]ll* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]ll* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  *[Aa]nnotate* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]nnotate* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]nnotate* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]nnotate* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Aa]nnotate* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  *[Bb]lob* [No such file or directory]
11:54:46 0:01 0.040u 4441 utility.c/IsAccessible/1599/Configure:
  [Bb]lob* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Bb]lob* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Bb]lob* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Bb]lob* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Cc]ache* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]ache* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]ache* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]ache* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]ache* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Cc]oder* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]oder* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]oder* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]oder* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]oder* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Cc]onfigure* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]onfigure* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]onfigure* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]onfigure* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Cc]onfigure* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Dd]eprecate* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Dd]eprecate* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Dd]eprecate* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Dd]eprecate* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Dd]eprecate* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Ll]ocale* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Ll]ocale* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Ll]ocale* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Ll]ocale* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Ll]ocale* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Nn]one* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Nn]one* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Rr]esource* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]esource* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]esource* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]esource* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]esource* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Rr]ender* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]ender* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]ender* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]ender* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Rr]ender* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[Tt]ransform* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Tt]ransform* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Tt]ransform* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Tt]ransform* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [Tt]ransform* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[U]ser* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [U]ser* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [U]ser* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [U]ser* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [U]ser* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  *[X]11* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [X]11* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [X]11* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [X]11* [No such file or directory]
11:54:46 0:01 0.050u 4441 utility.c/IsAccessible/1599/Configure:
  [X]11* [No such file or directory]
11:54:46 0:01 0.070u 4441 type.c/GetTypeBlob/214/Configure:
  Searching for type file "type.mgk" ...
11:54:46 0:01 0.070u 4441 utility.c/IsAccessible/1599/Configure:
  /usr/local/lib/ImageMagick-5.5.7/type.mgk [Undefined error: 0]
[Sol:Drive2/WEB/testout] admin% 
And then when I examine the type.mgk file:

Code: Select all

[Sol:Drive2/WEB/testout] admin% ls /usr/local/lib/ImageMagick-5.5.7
colors.mgk             locale.mgk             modules-Q16            type-windows.mgk
delegates.mgk          log.mgk                type-ghostscript.mgk   type.mgk
english.mgk            magic.mgk              type-solaris.mgk
[Sol:Drive2/WEB/testout] admin% cat !$/type.mgk
cat /usr/local/lib/ImageMagick-5.5.7/type.mgk
<?xml version="1.0"?>
<typemap>
  
</typemap>
[Sol:Drive2/WEB/testout] admin% 
The type-ghostscript.mgk file is not empty. And, indeed contains entries for Helvetica:

Code: Select all

...
  <type
    name="Helvetica"
    fullname="Helvetica Regular"
    family="Helvetica"
    foundry="URW"
    weight="400"
    style="normal"
    stretch="normal"
    format="type1"
    metrics="n019003l.afm"
    glyphs="n019003l.pfb"
    />
  <type
    name="Helvetica-Bold"
    fullname="Helvetica Bold"
    family="Helvetica"
    foundry="URW"
    weight="700"
    style="normal"
    stretch="normal"
    format="type1"
    metrics="n019004l.afm"
    glyphs="n019004l.pfb"
    />
...
If I search for the filenames "n019003l.afm" I see it in an archive directory...but not in a place that I would expect IM to be able to find it.

Then again, if I knew where IM was looking for things then I wouldn't be posting here!

Changing the name of the folder enclosing the lone copy of n019003l.afm on the system does not produce any errors, so I don't think that's the copy it's using.

Any ideas?

--Mark
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Our type.mgk file looks like this:
  • <?xml version="1.0" encoding="UTF-8"?>
    <typemap>
    <include file="type-ghostscript.xml" />
    </typemap>
and the first few lines of type-ghostscript.xml"
  • <?xml version="1.0" encoding="UTF-8"?>
    <typemap>
    <type
    name="AvantGarde-Book"
    fullname="AvantGarde Book"
    family="AvantGarde"
    foundry="URW"
    weight="400"
    style="normal"
    stretch="normal"
    format="type1"
    metrics="/usr/local/share/ghostscript/fonts/a010013l.afm"
    glyphs="/usr/local/share/ghostscript/fonts/a010013l.pfb"
    />
    ...
Notice the complete path to the Ghostscript fonts.
Post Reply