[cairo] XML

Carl Worth cworth at cworth.org
Wed Dec 7 10:03:06 PST 2005

On Wed, 7 Dec 2005 12:49:35 +0000, Aldo Nicolas Bruno wrote:
> Hi, I'm looking for a way of rendering Cairo throught an XML
> interface. Is there anything like that?

I'm not quite sure which direction or what exactly you are wanting to
do, but I can at least point out a couple of options.

There is the SVG format which is a W3C recommendation for an XML-based
description of vector graphics:


We have the libsvg-cairo library in cairographics.org which allows for
taking (many, though certainly not all) SVG documents and rendering
them with cairo:


There are also example programs that use this library to render to an
X window, write out to a PNG image, or write out to a PDF file:


As I mentioned above, libsvg is not a very complete SVG
renderer. There is also the librsvg library which is more complete,
more actively maintained and which was recently made to also render
with cairo:


Meanwhile, if you instead wanted something to capture cairo drawing
commands as an XML file, there has been some recent effort to provide
a backend for cairo that causes it to output SVG. This work should be
appearing in cairo itself soon:


I hope that helps.

Have fun,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20051207/714f0ce0/attachment.pgp

More information about the cairo mailing list