1) Install Cairo for Mac. You can install it by darwinports. You should change the Portfile to enable cairo for configuration. The file located at /opt/local/var/macports/sources/rsync.macports.org/release/ports/graphics/cairo on my machine. Maybe there is another better way to do it, for example Port Variants. 2) check out the cairo demo code. cvs -d :pserver:anoncvs@cvs.cairographics.org:/cvs/cairo co cairo-demo 3) [...]