Cairo

Cairo is a 2D vector graphics library providing a device independent drawing API that resembles closely PostScript. Cairo can render to various outputs, including X and Win32, as well as to PostScript/PDF, SVG and PNG images. Cairo can also output to raw memory, allowing the programmer to do what they want with the output. Cairo uses hardware acceleration when it can.