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
on server 1
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
Problem with Fonts
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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.
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/
https://imagemagick.org/Usage/
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).
produced by this code:
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
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).
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
mediman
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
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.
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/
https://imagemagick.org/Usage/
Re:
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