Problem with 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
mediman

Problem with Fonts

Post by mediman »

I have two servers

1. SuSE 9.0 with IM 6.2.6 01/26/06 Q16 32 Bit
2. SuSE 10.0 with IM 6.2.5 08/26/06 Q16 64 Bit (Dualcore)

Now my prob.

I use the following code on both machines

convert -size 468x20 xc:none -font /usr/local/gdfonts/mekanik.ttf -pointsize 20 -draw "text 10,15 'Das ist ein kleiner Testtext, der Fehler zeigt'" bg.png +swap -gravity south -composite test.jpg

The result is really different

Image on server 1
Image on server 2

Is this due to the 64 bit, or because the 64 bit machine has an older version(6.2.5)? or is it a prob with a other software used by im?

any help is really appreciated.

mediman
mediman

Post by mediman »

i upgraded the second server now to an SuSE 10.1 64Bit with IM 6.3.0 10/28/06 Q16 and make now tests.

mediman
mediman

Post by mediman »

made a test witgh another font now, which before failes, but now it seems to work.
the font mekanik makes trouble again.
mediman

Post by mediman »

okay, i made now a lot of tests and i am sure it is not an issue with IM rather than a issue with the font itself or freetype.

thanks and merry x-mas

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

Post by anthony »

The top font looks like the default arial font, I'd say it was not found, and silently replaced.

The Bottom just looks like a slight change in the spacing of the old font, so I'd say it was version chnages either in the font itself, or in its handling.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
mediman

Post by mediman »

Hi Anthony,

no both fonts are "mekanik", but you are right they are very similar to arial, but in some letters like the w you note the difference.

when i use arial as font i have no probs with the spacing, only with this mekanik font, so i think its a prob with font handling by gs.

the old server makes use of

ESP Ghostscript 7.07.1 (2003-07-12)

the new one uses

ESP Ghostscript 8.15.1 (2005-09-22)

i think i have to test what fonts work with IM 6.3.0 and GS 8.15.1 and then use the working ones.

what i can´t understand is, that when i use the font with pointsize 30, then it works great (korrekt spacing).

Image

produced by this code:

Code: Select all

convert -size 468x30 xc:white -font /usr/local/gdfonts/mekanik.ttf -pointsize 30 -draw "text 0,25 'Das ist ein kleiner Testtext, der Fehler zeigt'" test.jpg
So i believe it has to do with the font or gs. but when it is a prob with the font, why it works with IM 6.2.6 and GS 7.07.1 ?

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

Post by anthony »

gs is used for Type1 postscript fonts like Helvetica, and Times.
freetype is used for truetype fonts, like Arial.

Whatever type Mechnic font is will tell you what delegate is processing the font.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
mediman

Re:

Post by mediman »

anthony wrote: gs is used for Type1 postscript fonts like Helvetica, and Times.
freetype is used for truetype fonts, like Arial.

Whatever type Mechnic font is will tell you what delegate is processing the font.


Okay, finally i found the prob.

It´s freetype. the version included with SuSE 10.0 has bugs with fonts. i compiled a newer version and the probs are gone.

thx a lot anthony

mediman
Post Reply