[cairo] Render SVG to a framebuffer

Dan Amelang daniel.amelang at gmail.com
Fri Aug 10 17:36:10 PDT 2007

On 8/10/07, Hans-Jürgen Koch <hjk at linutronix.de> wrote:
> Am Samstag 11 August 2007 schrieb Vladimir Vukicevic:
> > Hi Hans,
> >
> > Cairo should work well for you as a rasterizer; however, you'll need
> > something to actually interpret the SVG that you generate.  I believe
> > the current svg processor of choise is rsvg/librsvg?  (Someone should be
> > able to correct me if I'm wrong :)
> >
> > However, is the SVG itself a necessary part of the process?  It seems
> > like if you're generating SVG, you may as well use cairo directly to
> > draw -- then if needed, you can execute the same drawing commands
> > against the cairo SVG backend instead of the software rendering backend
> > and obtain SVG.
> Well, in the end I need an SVG file that somebody else can render on a
> different computer and get the same result as I see on my screen. How I
> achieve that goal is not important.

In that case, as Vlad suggested, you can use cairo for all your
drawing. Draw on an image surface when you need to render to your
framebuffer. Do that same drawing on an SVG surface when you need to
send the results elsewhere.


More information about the cairo mailing list