Text Offset Probem with SVG 1.1 Specification Example
Posted: 2011-11-08T10:19:12-07:00
Just getting started with SVG coding and ImageMagik and have been delighted so far with the quick, precise and easy rendering of SVG geometric shapes to GIF. However, I just ran into my first problem when I tried to render text. After getting some strange behavior, I decided to just try rendering an example from the SVG 1.1 standard itself.
I picked the example "NewCoordSys" from the section of the specification on translation of coordidates here => http://www.w3.org/TR/SVG/coords.html
This should produce two pieces of text, one rotated slightly and one offset.
I cut and pasted the SVG code into the file X1.SVG.
From the Windows command line, I typed:
convert X1.SVG X1.GIF
It ran instantly with no errors. However, when I look at the GIF, the text is not in the right place. In both coordinate systems (two are shown) it is about 3 ems down and 3 ems to the right of where it should be. This problem is quite similar to the problem I was having in my own piece of SVG.
I installed from ImageMagick-6.7.3-2-Q16-windows-dll.exe (recommended default). I happen to be using Windows XP, but the behavior is the same on my Windows 7 machine.
Is there some configuration step I need to take or additional command line option I need to include?
Thanks!
David Hetherington
Austin, Texas, USA
I picked the example "NewCoordSys" from the section of the specification on translation of coordidates here => http://www.w3.org/TR/SVG/coords.html
This should produce two pieces of text, one rotated slightly and one offset.
I cut and pasted the SVG code into the file X1.SVG.
From the Windows command line, I typed:
convert X1.SVG X1.GIF
It ran instantly with no errors. However, when I look at the GIF, the text is not in the right place. In both coordinate systems (two are shown) it is about 3 ems down and 3 ems to the right of where it should be. This problem is quite similar to the problem I was having in my own piece of SVG.
I installed from ImageMagick-6.7.3-2-Q16-windows-dll.exe (recommended default). I happen to be using Windows XP, but the behavior is the same on my Windows 7 machine.
Is there some configuration step I need to take or additional command line option I need to include?
Thanks!
David Hetherington
Austin, Texas, USA