[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] simple/cross platform SVG loading



In the pyweek forums, they were posting about using the lightwieght squirtle lib:

squirtle+pyglet with inkscape for map editing.

http://www.supereffective.org/pages/Squirtle-SVG-Library

On Sun, Apr 4, 2010 at 4:25 AM, Neilen <nmarais@xxxxxxxxx> wrote:
Hi,

I'm looking for a simple cross-platform way to load SVG files.
Basically looking for something that works like pygame.image.load(),
but understands svg. The only requirements are

1) Load svg
2) Query svg size/aspect ratio
3) render to raster surface at X dpi, or with specified width/height.

The solutions I've been able to find seem to have quite heavy weight
requirements, such as cairo+librsvg which implies python-gnome2-
desktop, other solutions that require openGL etc.

Is there an easy/simple solution I have overlooked?

Thanks
Neilen



--
Jake