This SVG fails to load in Batik's Browser because of the precision of the stroke-width attributes. It was created with Batik's Graphics2D implementation.
I know this might seem an odd SVG but the parser shouldn't barf on floating point values I think. (It works fine in Adobe's SVG viewer.) This SVG won't load in JASC's WebDraw which complains about malformed SVG: line 4, column 481: Missing required attribute (width) line 4, column 481: Bad element (svg) I'm also having trouble with the bounding box that gets created using the Graphics2D but I'll report back on that when I understand it more. Any help on the above problems appreciated. I really want to use Batik rather than rolling my own image viewer stuff in Java2D... but I need compatibility with other tooling (JASC and Adobe) and I'm keen to embed the Batik Canvas if I can get it to work with my images. Regards, SteveM <?xml version="1.0" ?> <!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'> <svg xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-opacity:1; color-rendering:auto; color-interpolation:auto; stroke:black; text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10; shape-rendering:auto; stroke-opacity:1; fill:black; stroke-dasharray:none; font-weight:normal; stroke-width:1; font-family:'sansserif'; font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0; image-rendering:auto;" xmlns="http://www.w3.org/2000/svg"> <!--Generated by the Batik Graphics2D SVG Generator--> <defs id="genericDefs" /> <g> <g style="fill:white; stroke:white;" transform="matrix(165.64401742784253,0,0,165.64401742784253,0,98.42619105550 36)"> <path d="M0 -0.5942031145095825 L0.9659268260002136 -0.5942031145095825 L0.9659268260002136 0 L0 0 L0 -0.5942031145095825" style="stroke:none;" /> </g> <g style="stroke-width:9.999999682655225E-21;" transform="matrix(165.64401742784253,0,0,165.64401742784253,0,98.42619105550 36)"> <path d="M0.5654029846191406 -0.5942031145095825 C0 0 0 -0.30827096104621887 0.9659268260002136 0" style="fill:none;" /> </g> </g> </svg> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
