Page 1 of 1
Problem with Fonts
Posted: 2006-12-24T16:16:06-07:00
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
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
Posted: 2006-12-25T09:23:11-07:00
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
Posted: 2006-12-25T09:44:18-07:00
by mediman
made a test witgh another font now, which before failes, but now it seems to work.
the font mekanik makes trouble again.
Posted: 2006-12-25T09:57:33-07:00
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
Posted: 2006-12-25T19:00:42-07:00
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.
Posted: 2006-12-26T02:51:33-07:00
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).
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
Posted: 2006-12-29T22:52:05-07:00
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.
Re:
Posted: 2007-03-09T13:04:31-07:00
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