Page 1 of 1

Macintosh Binary unable to read font `(null)'.

Posted: 2007-08-31T07:32:31-07:00
by dfort
Downloaded ImageMagick-universal-apple-darwin8.10.1.tar.gz and installed as per instructions on http://www.imagemagick.org/script/binar ... php#macosx and it worked fine until I tried to annotate text onto an image. For example:

Code: Select all

montage -geometry +0+0 -background skyblue \
            -label "Faerie Dragon"  input.jpg   output.jpg
results in

Code: Select all

montage: unable to read font `(null)'.
I understand that it might be better to install using MacPorts or Fink, but those require developer tools which are not allowed on the systems that I'm using. I also understand that ImageMagick requires ghostscript--even though there is no mention of it in the MacOS binary installation instructions. I'm suspecting that my ghostscript installation may be incorrect, it was also a binary install.

In any case, annotating text onto images using the ImageMagick-6.3.5 Macintosh binary isn't working out of the box.

Re: Macintosh Binary unable to read font `(null)'.

Posted: 2007-09-07T00:43:29-07:00
by dfort
I solved my issue but will ask for a feature request.

The problem is that the configuration for the OS-X binary distribution doesn't point to the location of the ghostscript fonts. I needed to add type.xml and type_ghostscript.xml to ~/ImageMagick-6.3.5/share/ImageMagick-6.3.5/config/

I used the example files from http://imagemagick.org/script/resources.php#type.xml and modified the path in the sample type_ghostscript.xml file to the location of the fonts from the distribution that I used-- /usr/local/share/ghostscript/fonts/

That solved my problems but perhaps the OS-X binary distribution should include the fonts that it needs for annotating images and install them in ~/ImageMagick-6.3.5/share/ImageMagick-6.3.5/fonts

Feature request: Include fonts or instructions on how to configure ImageMagick to use the installed fonts on the http://www.imagemagick.org/script/binar ... php#macosx page.

Thanks

--Dan