Page 1 of 1

MagickQueryFontMetrics returns invalid result with TTF font

Posted: 2010-12-01T09:26:53-07:00
by ledzep2
Env: ImageMagick 6.5.6 or ImageMagick 6.6.6, Windows XP SP2,

I'm trying to get the length of a single letter 'Z' with MagickQueryFontMetrics function on a ttf font. It returns a size of (33554675.84375, 40.0) which is impossible. Then I tried other letters, it works just fine. It even works for letter 'z' (lowercase).

I tried Linux version of ImageMagick, all work fine. So I guess it's a bug for just windows version.

The font can be downloaded at http://www.printyourmind.com/static/childfont1.ttf