Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fast Vector rendering library for C or Python

I'm looking for a library like Cairo, just far faster. It has to be a library that works with C or Python. It also would be nice if I could output to PNG, and SVG. I am looking at Qt's arthur, but that's C++, and I'm not a fan. Any suggestions?

Edit: another precondition is that it has to run under Linux.

like image 424
Sargun Dhillon Avatar asked Nov 15 '08 08:11

Sargun Dhillon


3 Answers

Python has aggdraw

like image 68
Ned Batchelder Avatar answered Oct 31 '22 19:10

Ned Batchelder


I don't know what's fast, but here's a rendering comparison.

Edit: Apparently Xara is supposed to be much faster than Cairo.

like image 30
Eugene Yokota Avatar answered Oct 31 '22 18:10

Eugene Yokota


Google's Chrome browser and Android platform make use of their Skia vector library.

I heard second-hand that Vladimir Vukicevic has quickly ported Cairo to be able to use Skia. A quick googling seems to confirm it:

http://people.mozilla.com/~vladimir/misc/cairo-skia.patch

Not sure when or if this is mainstream, but I'd anticipate a major speed-up across the board!

like image 24
Will Avatar answered Oct 31 '22 18:10

Will