[cairo] Fill+stroke optimisation for the SVG backend

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Tue Jul 31 15:08:48 PDT 2007


Le mardi 31 juillet 2007 à 17:41 -0400, Behdad Esfahbod a écrit :
> On Tue, 2007-07-31 at 23:42 +0200, Emmanuel Pacaud wrote:
> > Le mardi 31 juillet 2007 à 17:09 -0400, Behdad Esfahbod a écrit :
> > > On Tue, 2007-07-31 at 17:07 -0400, Emmanuel Pacaud wrote:
> > > > 
> > > > 
> > > > I've recently tried to optimize the output of the SVG backend in the
> > > > case of consecutive calls to fill and stroke with the same path, and
> > > > only emit one <path> element in this case.
> > > 
> > > What if the stroke pattern is not an opaque solid one?  In that case the
> > > fill will be visible through the stroke.
> > 
> > That's what SVG does. Fill opacity and stroke opacity are two distinct
> > properties.
> 
> Sorry, I should have been more clear.  What is the SVG semantics, that
> in case of a translucent stroke pattern, do you see the fill in the
> inner half width of the stroke?  Or is the fill clipped to outside of
> the stroke?

The fill is visible through the stroke. I've attached a sample file.

	Emmanuel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circle.png
Type: image/png
Size: 2454 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20070801/eacabb1a/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: circle.svg
Type: image/svg+xml
Size: 893 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20070801/eacabb1a/attachment.svg 


More information about the cairo mailing list