Hi,

rsvg (http://library.gnome.org/devel/rsvg/stable/) claims to be the
library to render svg files to gdk pixbufs or cairo contexts. Haven't
had much succes with it tough (blurry render) but ymmv.
It has python bindins in the gnome-python-desktop package.

Dieter

On Thu, 2007-11-01 at 13:17 +0200, Donn wrote:
> Hi again,
> I have poked-around the net, but not found a simple example to:
> 1. Open an svg file
> 2. Draw it to a gtk.DrawingArea
> 
> I am also confused about how that would/would not fit into pycairo - is cairo 
> used to draw the svg, or is it done directly by something else?
> Is there any way to get pycairo statements from an svg? I mean, given an svg 
> file, get cairo
>         cr.set_line_width(0.1)
>         cr.set_source_rgb(0, 0, 0)
>         cr.rectangle(0.25, 0.25, 0.5, 0.5)
>         cr.stroke()
> commands out that would draw the thing.
> 
> I am aiming at paths really, closed paths that are filled.
> 
> \d
> _______________________________________________
> pygtk mailing list   [email protected]
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to