[cairo] Nub Question on SVG loading in Ruby

Behdad Esfahbod behdad at behdad.org
Thu Nov 2 12:43:13 PST 2006


On Thu, 2006-11-02 at 15:32 -0500, Jon Dodson 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.  
> 
> Word up.

Hi,

You should use librsvg with cairo.  Not sure about Ruby bindings.

behdad


> -- 
> -jon
> 
> http://www.jdodson.org
> http://www.royband.com 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"



More information about the cairo mailing list