cairocffi¶
cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of Python bindings and object-oriented API for cairo. Cairo is a 2D vector graphics library with support for multiple backends including image buffers, PNG, PostScript, PDF, and SVG file output.
Additionally, the cairocffi.pixbuf
module uses GDK-PixBuf
to decode various image formats for use in cairo.
- Latest documentation
- Source code and issue tracker on GitHub.
- Install with
pip install cairocffi
- Python 2.6, 2.7 and 3.4+. Tested with CPython, PyPy and PyPy3.
- API partially compatible with Pycairo.
- Works with any version of cairo.
Documentation¶
- Overview
- Python API reference
- Meta
- Surfaces
- Context
- Matrix
- Patterns
- Fonts & text
- Enumerated values
- Content
- Pixel format
- Compositiong operator
- Antialiasing mode
- Fill rule
- Line cap style
- Line join style
- Font slant
- Font weight
- Subpixel order
- Hint style
- Metrics hinting mode
- Path operation
- Pattern extend
- Pixel filter
- PDF version
- PDF outline
- PDF metadata
- PostScript level
- SVG version
- SVG unit
- Cluster flags
- Decoding images with GDK-PixBuf
- Using XCB surfaces with xcffib
- CFFI API
- cairocffi changelog