[cairo] Is there a usable libsvg-cairo?

Owen Taylor otaylor at redhat.com
Wed May 11 16:08:19 PDT 2005

On Wed, 2005-05-11 at 09:46 -0400, Owen Taylor wrote:
> On Wed, 2005-05-11 at 09:01 -0400, Owen Taylor wrote:
> > Basically what needs to be done:
> > 
> >  - Add a cairo_t to svg_cairo_state (I think you might be able
> >    to replace state->child_surface with it, but not necessary)
> > 
> >  - Write a function to copy all the state over from the 
> >    currentcairo_t to a newly child cairo_t offsettings the matrix as 
> >    appropriate.
> > 
> >  - Do the right thing in begin_group/group_group.
> > 
> > Maybe an hour or so of work.
> 45 minutes before testing, as it turned out. The attached patch
> compiles and should be about right. I don't trust the handling of the
> combination of patterns and matrices, but it should compute the
> same thing as it did before.
> If someone with a test program and a bunch of SVG's wants to
> try this out, that would be great. 

Here's a version that fixes up two obvious bugs (null pointer, 
unitialized member) that I hit when running cairo_snippets. But
I haven't actually gone looking for SVG's with groups in them.
So, it definitely could do with more testing.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsvg-cairo-3.patch
Type: text/x-patch
Size: 14752 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050511/e337c171/libsvg-cairo-3.bin

More information about the cairo mailing list