MagickQueryFontMetrics returns invalid result with TTF font

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.
Post Reply
ledzep2

MagickQueryFontMetrics returns invalid result with TTF font

Post 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
Post Reply