[cairo] Render SVG to a framebuffer

Hans-Jürgen Koch hjk at linutronix.de
Sat Aug 11 05:36:13 PDT 2007


Am Samstag 11 August 2007 schrieb Dan Amelang:
> 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.

Hi Dan,
thanks a lot for that hint. That seems to be the right way to go for me.

However, I'm not sure about the status of the cairo directfb backend. Is
it useable? It's mentioned on the cairo homepage as "work in progress",
but it's not included in the documentation. 

Hans




More information about the cairo mailing list