GetTypeMetrics(...) issue in ImageMagick-6.5.8-6-

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: GetTypeMetrics(...) issue in ImageMagick-6.5.8-6-

Post by fmw42 »

perhaps it is a bad font file. try to reinstall it or try other fonts.
ptast

Re: GetTypeMetrics(...) issue in ImageMagick-6.5.8-6-

Post by ptast »

I must disagree, since it works on the previous IM version. I did try ~10 different fonts.

Did you notice how Text was printed in the previous version of IM in the console?
Metrics: text: ░;
And the latest:
Metrics: text: °;
The arial.ttf that I used can be found here http://www.poes-weather.com/~patrik/tmp/ARIAL.TTF
ptast

Re: GetTypeMetrics(...) issue in ImageMagick-6.5.8-6-

Post by ptast »

FYI,

I just upgraded IM to the latest (6.5.8-7) on the Fedora 9 machine and the degree sign sure works as expected.
I have tried the same on a XP and a win2k machine and no output. It now seems like this is a windows issue only....

Debug from the Fedora machine:
[patrik@noaaport ~]$ convert -version -background lightblue -fill blue -pointsize 32 label:'°' -debug 'Annotate' test.png
Version: ImageMagick 6.5.8-7 2009-12-20 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

2009-12-20T15:26:18+02:00 0:00.030 0.020u 6.5.8 Annotate convert[2550]: annotate.c/RenderFreetype/1139/Annotate
Font /usr/share/fonts/default/Type1/n019003l.pfb; font-encoding none; text-encoding none; pointsize 32
2009-12-20T15:26:18+02:00 0:00.030 0.020u 6.5.8 Annotate convert[2550]: annotate.c/GetTypeMetrics/733/Annotate
Metrics: text: °; width: 13; height: 40; ascent: 24; descent: -7; max advance: 35; bounds: 5,12.1562 14.8438,22; origin: 19,0; pixels per em: 32,32; underline position: -2.35938; underline thickness: 0.78125
2009-12-20T15:26:18+02:00 0:00.040 0.040u 6.5.8 Annotate convert[2550]: annotate.c/RenderFreetype/1139/Annotate
Font /usr/share/fonts/default/Type1/n019003l.pfb; font-encoding none; text-encoding none; pointsize 32
2009-12-20T15:26:18+02:00 0:00.040 0.040u 6.5.8 Annotate convert[2550]: annotate.c/GetTypeMetrics/733/Annotate
Metrics: text: °; width: 13; height: 40; ascent: 24; descent: -7; max advance: 35; bounds: 5,12.1562 14.8438,22; origin: 19,0; pixels per em: 32,32; underline position: -2.35938; underline thickness: 0.78125
2009-12-20T15:26:18+02:00 0:00.040 0.060u 6.5.8 Annotate convert[2550]: annotate.c/RenderFreetype/1139/Annotate
Font /usr/share/fonts/default/Type1/n019003l.pfb; font-encoding none; text-encoding none; pointsize 32
[patrik@noaaport ~]$
And from a XP/win2k machine:
C:\Programming\ImageMagick\ImageMagick-6.5.8-Q8>convert -version -background lightblue -fill blue -pointsize 32 label:"°" -debug "Annot
ate" test.png
Version: ImageMagick 6.5.8-7 2009-12-17 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

2009-12-20T17:56:03+02:00 0:00.031 0.031u 6.5.8 Annotate convert[3000]: annotate.c/RenderFreetype/1139/Annotate
Font c:\windows\fonts\arial.ttf; font-encoding none; text-encoding none; pointsize 32
2009-12-20T17:56:03+02:00 0:00.047 0.031u 6.5.8 Annotate convert[3000]: annotate.c/GetTypeMetrics/733/Annotate
Metrics: text: °; width: 0; height: 37; ascent: 29; descent: -7; max advance: 64; bounds: 0,-0.109375 0.34375,0.34375; origin: 0,0;
pixels per em: 32,32; underline position: -3.39063; underline thickness: 2.34375
2009-12-20T17:56:03+02:00 0:00.063 0.031u 6.5.8 Annotate convert[3000]: annotate.c/RenderFreetype/1139/Annotate
Font c:\windows\fonts\arial.ttf; font-encoding none; text-encoding none; pointsize 32
2009-12-20T17:56:03+02:00 0:00.063 0.031u 6.5.8 Annotate convert[3000]: annotate.c/GetTypeMetrics/733/Annotate
Metrics: text: °; width: 0; height: 37; ascent: 29; descent: -7; max advance: 64; bounds: 0,-0.109375 0.34375,0.34375; origin: 0,0;
pixels per em: 32,32; underline position: -3.39063; underline thickness: 2.34375
2009-12-20T17:56:03+02:00 0:00.078 0.047u 6.5.8 Annotate convert[3000]: annotate.c/RenderFreetype/1139/Annotate
Font c:\windows\fonts\arial.ttf; font-encoding none; text-encoding none; pointsize 32

C:\Programming\ImageMagick\ImageMagick-6.5.8-Q8>
Post Reply