Hello, I'm calculating the bbox value of a group containing a rectangle to adapt its dimension to the text it contained.
The generated SVG looks like this: <g xmlns="http://www.w3.org/2000/svg" class="rectangle-node" id="node3" transform="translate(200, 225)"> <rect style=" fill: white; stroke: black; " width="100.0" height="40.0"/> <text x="50" font-size="12px" y="20" style=" dominant-baseline: central; " font-family="helvetica" text-anchor="middle">Stuff</text> </g> As you can see on the attached image this works well with Batik (on the right of the image) but the same SVG displayed in Chrome (on the left) is not correct. The text flows out of the rectangle. Why does this calculation is not renderer independent given the font size and font are specified? What kind of solution can I implement to solve this problem?
<<attachment: example.png>>
--------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org