Page 1 of 1

SVG text and quotes

Posted: 2008-04-25T07:22:25-07:00
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

Re: SVG text and quotes

Posted: 2008-04-25T07:34:24-07:00
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.

Re: SVG text and quotes

Posted: 2008-04-25T07:56:03-07:00
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.