Font-Rendering-Trouble, SuSE 10.1, IM 6.3.2

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
getThemAlive

Font-Rendering-Trouble, SuSE 10.1, IM 6.3.2

Post by getThemAlive »

Hello magick-users!

I am having a little problem with Fonts in ImageMagick. Unfortunately I haven't found anything on the web to solve it. It would be wonderful, if you could help me with it.

The Problem:

When using IM via bash-command

Code: Select all

convert -background white -fill black -font Helvetica -pointsize 32 label:testtext label.gif
he gives me the following error message:

Code: Select all

convert: FreeTypeLibraryIsNotAvailable `/usr/share/ghostscript/fonts/n019003l.pfb'.
convert: FreeTypeLibraryIsNotAvailable `/usr/share/ghostscript/fonts/n019003l.pfb'.
convert: FreeTypeLibraryIsNotAvailable `/usr/share/ghostscript/fonts/n019003l.pfb'.
which is strange, because a "convert -list type" returns this:

Code: Select all

Path: /usr/local/lib/ImageMagick-6.3.2/config/type-ghostscript.xml

Name                             Family                 Style   Stretch   Weight
--------------------------------------------------------------------------------
...
Helvetica                        Helvetica              Normal  Normal       400
...
... and a locate libfreetype returns:

Code: Select all

/usr/lib/libfreetype.a
/usr/lib/libfreetype.la
/usr/lib/libfreetype.so
/usr/lib/libfreetype.so.6
/usr/lib/libfreetype.so.6.3.8
/usr/X11R6/lib/modules/fonts/libfreetype.so
When using convert with a Truetype-Font-File on the command-line (-font MYFONT.TTF), the error message reads like this:

Code: Select all

convert: FreeTypeLibraryIsNotAvailable `MYFONT.TTF'.
convert: FreeTypeLibraryIsNotAvailable `MYFONT.TTF'.
convert: FreeTypeLibraryIsNotAvailable `MYFONT.TTF'.
The funny thing is, that (only in this TTF-case) it is producing the Image with the right font in spite of the error messages (which puzzled me completely).

I am running ImageMagick 6.3.2 on a SuSE 10.1 Linux-Box (Pentium II). locate and updatedb are installed and working fine. I reinstalled ImageMagick after installing freetype-devel packages ( compiled it on my machine ).

It would be great, if one of you has come across this problem and could tell me what else to try, for I am stuck here ...

Thanks in advance

Ingmar
getThemAlive

Re: Font-Rendering-Trouble, SuSE 10.1, IM 6.3.2

Post by getThemAlive »

Seems strange, but after I added libtiff via yast the trouble with the font disappeared.
Perhaps a bug?

Ingmar
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Font-Rendering-Trouble, SuSE 10.1, IM 6.3.2

Post by anthony »

Helvetical is a ghostscript font. It needs ghostscript installed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply