Page 1 of 1

Get "unable to read font `(null)'" message at 6.4.2-10

Posted: 2008-08-20T16:57:48-07:00
by rmagick
At 6.4.2-10 I get the message "unable to read font `(null)' when trying to use a font. I did not get this message at 6.4.2-9, using the identical configuration and libraries. Both versions were built using the same script on the same O/S (Ubuntu Gutsy), and machine.

Please let me know if you need any more information.

Here's the 6.4.2-10 output:

Code: Select all

im@linux:~/RMagick/projects/RMagick$ convert label:abcdef xxx.gif
convert: unable to read font `(null)'.
convert: unable to read font `(null)'.
convert: unable to read font `(null)'.
tim@linux:~/RMagick/projects/RMagick$ convert -list configure

Path: /home/software/ImageMagick-6.4.2/lib/ImageMagick-6.4.2/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc -std=gnu99
CFLAGS        -I/usr/include/lqr-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -Wall -W -pthread
CONFIGURE     @CONFIGURE_ARGS@
COPYRIGHT     Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS      -I/home/software/ImageMagick-6.4.2/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib fontconfig freetype gs jpeg lcms lqr png rsvg tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-g' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/type1/gsfonts
EXEC-PREFIX   /home/software/ImageMagick-6.4.2
HOST          i686-pc-linux-gnu
LDFLAGS       -L/home/software/ImageMagick-6.4.2/lib -lfreetype -lz
LIB_VERSION   0x642
LIB_VERSION_NUMBER 6,4,2,10
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/lib/lqr-1 -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lpthread
NAME          ImageMagick
PCFLAGS
PREFIX        /home/software/ImageMagick-6.4.2
QuantumDepth  16
RELEASE_DATE  2008-08-20
VERSION       6.4.2
WEBSITE       http://www.imagemagick.org
Here's the 6.4.2-9 output

Code: Select all

im@linux:~/RMagick/projects/RMagick$ convert label:abcdef xxx.gif
tim@linux:~/RMagick/projects/RMagick$ convert -list configure

Path: /home/software/ImageMagick-6.4.2/lib/ImageMagick-6.4.2/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            gcc
CFLAGS        -g -Wall -W -pthread
CONFIGURE     ./configure CFLAGS=-g --enable-shared --disable-static --with-modules --with-gs-font-dir=/usr/share/fonts/type1/gsfonts --with-lqr --enable-cipher --with-quantum-depth=16 --without-perl --without-magick-plus-plus --prefix=/home/software/ImageMagick-6.4.2
COPYRIGHT     Copyright (C) 1999-2008 ImageMagick Studio LLC
CPPFLAGS      -I/home/software/ImageMagick-6.4.2/include/ImageMagick
CXX           g++
CXXFLAGS      -g -O2 -Wall -W -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib freetype gs jpeg lcms png tiff x11 xml wmf zlib
DISTCHECK_CONFIG_FLAGS 'CFLAGS=-g' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontpath= --with-gs-font-dir=/usr/share/fonts/type1/gsfonts
EXEC-PREFIX   /home/software/ImageMagick-6.4.2
HOST          i686-pc-linux-gnu
LDFLAGS       -L/home/software/ImageMagick-6.4.2/lib -lfreetype -lz
LIB_VERSION   0x642
LIB_VERSION_NUMBER 6,4,2,9
LIBS          -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lXext -lSM -lICE -lX11 -lbz2 -lz -lm -lpthread
NAME          ImageMagick
PCFLAGS
PREFIX        /home/software/ImageMagick-6.4.2
QuantumDepth  16
RELEASE_DATE  08/20/08
VERSION       6.4.2
WEBSITE       http://www.imagemagick.org

Re: Get "unable to read font `(null)'" message at 6.4.2-10

Posted: 2008-08-20T17:38:07-07:00
by magick
This problem is fixed in ImageMagick 6.4.3-0. To fix 6.4.2-10, edit type.xml and configure and change type-ghostscript.mgk to type-ghostscript.xml.

Re: Get "unable to read font `(null)'" message at 6.4.2-10

Posted: 2008-08-20T17:51:29-07:00
by rmagick
Thanks for the tip!