aaron@...476... wrote:
Gezim Hoxha wrote:
On Sat, 2005-05-07 at 12:30 -0700, Bryce Harrington wrote:
Here is my question: Say I have an object. And for this object I would like a border (i.e. stroke). How would I make sure that this border (stroke) is completely _outside_ the object and does not at all overlap with the object?
I don't know if this is possible to do in SVG,
Other than the fact that SVGs are scalable, I don't know much else about them. So, what makes this so impossible? Is it the XML language that is used to represent and SVG?
You'd have to read the spec http://www.w3.org/TR/SVG/painting.html to be sure but I believe what makes this impossible in SVG is the fact that the creators of SVG arbitrarily chose that the stroke should stradle the path outline.
Well, you could use a trick:
Clone the shape. Remove the stroke from the clone and fill it with opaque white. Then put the clone in front of the stroked twin. This will erase the inner part of the stroke.
You can use this trick to make text over a complex background readable, for example: Create the text then clone it. Remove the filling of the clone and add a white stroke, 3 Pixels wide. This will cut the characters from the background.