Error rendering fonts in svg

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
pheon
Posts: 7
Joined: 2012-09-29T12:48:52-07:00
Authentication code: 67789

Error rendering fonts in svg

Post by pheon »

When rendering a font in an svg file, whose size is specified as xx pt, ImageMagick sensibly but incorrectly scales the font by the pixel density. According to this file

http://www.w3.org/TR/SVG/coords.html#Units

in an SVG "1pt" equals "1.25px" and so the font should be the same size irrespective of the pixel density. An example of an SVG file that is rendered incorrectly is here

https://www.dropbox.com/s/jjt3aocr791u31x/test.svg
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Error rendering fonts in svg

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.7.9-10 Beta available by sometime tomorrow. Thanks.
Post Reply