[cairo] Nub Question on SVG loading in Ruby

Daniel Amelang daniel.amelang at gmail.com
Thu Nov 2 12:59:18 PST 2006


On 11/2/06, Jon Dodson <jbdodson at gmail.com> wrote:
> Hey all.
>
> I want to load a SVG file onto a GTK window and have it scale when someone
> resizes the window in Ruby.  There are some example in Debian to do this
> with PNG images using Cairo, and I have searched for literally hours on how
> to do it with a SVG file and I have found no way to do it in Ruby.
>
> Anyone have an example or something that can help out?
>
> I have an example of a window with some cairo drawings on it that can scale,
> I just want to render a SVG image to the canvas so I can scale it.
>

Look here for examples and more relevant mailing list:

http://ruby-gnome2.sourceforge.jp/

You should find that it's not too hard to do what you're looking for.

>  Word up.

Word out, dawg.

Dan


More information about the cairo mailing list