A few months ago I found that Firefox and Chromium were rendering my Batik-generated SVG files differently. Someone on this list kindly pointed out the problem: My font size (in the .svg file) was listed as "10", not "10px". (See example below.)
Any suggestions for what I do in Java to make the "px" suffix appear in my svg file's font size(s)? Thanks, Christian <?xml version="1.0" encoding="UTF-8"?> <!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; stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none; font-weight:normal; stroke-width:1; font-family:'Dialog'; 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="font-family:monospace; font-size:10;" ><rect x="0" y="0" width="86.2256" style="fill:none;" rx="2.5" ry="2.5" height="64.9219" /><text x="10" xml:space="preserve" y="21.6406" style="stroke:none;" >AAddH</text ><text x="10" xml:space="preserve" y="38.2812" style="stroke:none;" >123</text ><text x="10" xml:space="preserve" y="54.9219" style="stroke:none;" >Foo.if1(42)</text ></g ></g ></svg > --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org