[cairo] Fill+stroke optimisation for the SVG backend

Behdad Esfahbod behdad at behdad.org
Tue Jul 31 14:41:15 PDT 2007


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?


> 	Emmanuel.
> 
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759





More information about the cairo mailing list