SVG text and quotes

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
benzman

SVG text and quotes

Post by benzman »

Hi,

I think I found 2 bugs regarding <text> elements when converting from SVG files to other files (like PNG).

The first is, that double qoutes in the text aren't visible in the converted file.
Here is an example:
Source SVG
after "convert test_quot.svg test_quot.png" I get this PNG:
Image
As You may notice, the quotes in the first line are gone.

The second is, that there is a problem with single quotes at the end of the text. I tried some things and it seems that this only occures when the last sign in the text is a single quote regardless whats before the single qoute. When there is another sign after the single quote, the conversion is correct.
Here an example:
Source SVG
after "convert test_apos.svg test_apos.png" I get this PNG:
Image
I also get this message while converting:

Code: Select all

convert: Non-conforming drawing primitive definition `middle''.
My ImageMagick version is 6.3.8 04/08/08 Q16 on Gentoo Linux
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: SVG text and quotes

Post by magick »

We can reproduce the problem and will have a patch asap. In the mean-time if you download the latest ImageMagick release and ensure librsvg development is installed on your system and build from source, your SVG files will render properly.
benzman

Re: SVG text and quotes

Post by benzman »

I forgot to mention: I'm using libxml for SVG conversion, not librsvg, because its installed on a server and i don't want to install the whole X-stuff, thats required for librsvg.
Post Reply