xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Hull <peterhul...@gmail.com>
Subject cropping of thick strokes
Date Wed, 02 Feb 2011 10:54:57 GMT
I noticed that Batik will crop the edges of thick stroke lines so for example
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
         "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="256px" height="256px" version="1.1" viewBox="0 0 256 256"
     xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink" >
<symbol id="rc">
<rect x="0" y="0" width="20" height="100" stroke="black"
stroke-width="10" fill="white" />
</symbol>
<use xlink:href="#rc" x="100" y="100" />
</svg>
will show a rect with apparently a thinner stroke on the top/left
because it was cropped at x=0 and y=0, even though the final shape is
rendered in the middle of the page.

Just for my information, is that to do with Batik's implementation or
is it in the SVG spec (I couldn't find the relevant section)
Thanks,
Peter

Mime
View raw message