MagickQueryFontMetrics() differs from command line
Posted: 2007-01-24T08:33:12-07:00
Hi,
I convert text to image both from command line and using MagickWand API.
I noticed difference for some fonts.
Here's an example, try to generate image for text, say "7", using this font:
http://www.atwss.com/vav/trikotnr1.ttf
For pointsize = 300, command line produces 187x251 pixels image, API returns size 187x352. Moreover vertical shift is different. I take into account text descender, when drawing text from API.
Here's example images,
for command line: http://www.atwss.com/vav/7.png
and for API: http://www.atwss.com/vav/test1.png
I convert text to image both from command line and using MagickWand API.
I noticed difference for some fonts.
Here's an example, try to generate image for text, say "7", using this font:
http://www.atwss.com/vav/trikotnr1.ttf
For pointsize = 300, command line produces 187x251 pixels image, API returns size 187x352. Moreover vertical shift is different. I take into account text descender, when drawing text from API.
Here's example images,
for command line: http://www.atwss.com/vav/7.png
and for API: http://www.atwss.com/vav/test1.png