The attached svg file does not seem to get properly rendered by Batik. The file is purely geometric, no fancy scripting included, and has been generated with InkScape. Basically, the external circle seems to be rendered more like an "egg" or a flattened elllipse by Batik, whilst InkScape and Firefox 2 both render it properly (e.g. it looks like a circle all right).
Created attachment 21064 [details] The sample SVG file (created by InkScape)
Oh btw, the rendering tests I have done involved both the direct usage of the Batik API (in GeoTools, a GIS library that uses Batik to render svg icons on maps) and by using Squiggle, both with version 1.6 and 1.7
Hi Andrea. Small shapes sometimes do look 1px different with the default rendering hints that to the Java2D renderer. Putting a shape-rendering="geometricPrecision" attribute on the <svg> element will correct it in this case. See: http://www.w3.org/TR/SVG11/painting.html#ShapeRenderingProperty
Interesting... is there any way to force that attribute programmaticaly while playing with the transcoder?
Yes just modify the SVG document beforehand to include the shape- rendering="geometricPrecision" attribute before invoking the transcoder.