[cairo] Rendering SVG images

Håkon Skjelten skjelten at pvv.org
Sat Jan 5 20:24:05 PST 2013


Hi,

I am looking for a simple and portable way to render SVG images to
opengl textures (in C / C++). Cairo together with librsvg seems like
the obvious route - especially since I already depend on libxml2,
freetype6 and zlib. Unfortunately I also port my program to Windows,
MacOSX and in the future maybe even iOS/android. The dependency tree
for the librsvg library seems _very_ long. Tor Lillqvist made a pretty
good summary on this list back in 2009 [1]. Does anyone know if librsvg
has fewer dependencies today - or if there exist other svg rendering
libraries that have less dependencies?

In the same thread as mentioned above Freddie Witherden suggested to use
QtSVG. Seems like overkill to involve the QT library to only draw some svg
images, but is that still the simplest route?

Any help / tips are appreciated!


[1] http://lists.freedesktop.org/archives/cairo/2009-October/018335.html


Best regards,
Håkon



More information about the cairo mailing list