Why a stroke on top of a fill?

Why not take it to the SVG mailing list directly? (Note that I've taken 
the liberty to change the subject.) My guess would be that SVG does it 
for simplicity, but I'm definitely not sure.

Bryan Hoyt | Brush Technology wrote:
> That particular oddity has annoyed me a few times. I for one like your 
> way much better, Juan. But I guess I'd be in favour of sticking with the 
> standards if the standards people have no room for movement. Usually 
> safest ;-)
> There's a related oddity in Inkscape's rendering (and probably the 
> standards), the fact that the border is drawn so that it overlaps the 
> fill rather than surrounding it. To be honest, the idea of the stroke 
> surrounding the fill (non-overlapping) makes a lot more intuitive sense 
> to me, especially when you've got thick and/or translucent strokes like 
> Juan's example.
> Is somebody able to explain why the overlapping method is used, either 
> for intuitive reasons or technical reasons? Or is it just an arbitrary 
> choice by those who write the standards?
>  - Bryan
> -- 
> PS. Check out the Brush newsletter: *Subscribe or read our previous 
> newsletters* <http://brush.co.nz/articles>
> Bryan Hoyt, /Web Development Manager/  --  Brush Technology
> *Ph:* +64 3 942 7833     *Mobile:* +64 21 238 7955
> *Web:* brush.co.nz <http://brush.co.nz/>
> On Sat, Jun 5, 2010 at 01:48, Juan Vuletich <juan@jvuletich.org 
> <mailto:juan@jvuletich.org>> wrote:
>     Hi Folks,
>     Inkscape and other SVG renderes draw shapes by drawing first the fill,
>     and then drawing the border on top. As Ivan noted recently (in ""), at
>     http://dev.w3.org/SVG/modules/vectoreffects/master/SVGVectorEffectsPrimer.html
>     and http://www.w3.org/TR/SVGTiny12/render.html#PaintingShapesAndText ,
>     it is clear that the standard requests to do that.
>     I didn't know that, and took the time to render this svg:
>     http://www.jvuletich.org/Morphic3/rects.svg like this:
>     http://www.jvuletich.org/Morphic3/rectsInM3.png . It is a bit more
>     complicated, but I feel it is better.
>     What do you think? Should I simplify my code and just draw one over the
>     other? Or should the standard be changed, and Inkscape and other
>     renderers do what I did?
>     Thanks,
>     Juan Vuletich

Received on Saturday, 5 June 2010 08:16:15 UTC