Pycairo

Latest version: v1.27.0

Safety actively analyzes 688823 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 11

1.12.0

-------------------

General:
* Require cairo 1.12.0
* Use C90 and enforce it on travis-ci. :bug:`5`, :fdobug:`22940`

Constants:
* Add various new cairo.OPERATOR_*, cairo.ANTIALIAS_* and
cairo.FORMAT_* constants. :bug:`1`
* Add :data:`HAS_MIME_SURFACE` and cairo.MIME_TYPE_*. :bug:`7`,
:fdobug:`58771`
* Add cairo.PDF_VERSION_*. :pr:`16`
* Add cairo.SVG_VERSION_*

:exc:`Error`:
* Add a :data:`Error.status` attribute exposing cairo.STATUS_*
* Add :exc:`CairoError` alias for :exc:`Error` for cairocffi compatibility

:class:`Matrix`:
* Expose matrix components as read/write properties. e.g. :data:`Matrix.xx`
* Fix type checking of the multiplication operator under
Python 3. :bug:`8`, :fdobug:`89162` (Lawrence D'Oliveiro)

:class:`Surface`:
* Add :meth:`Surface.set_mime_data`. :bug:`7`, :fdobug:`58771`
* Add :meth:`Surface.get_mime_data`. :bug:`7`, :fdobug:`58771`
* Add :meth:`Surface.supports_mime_type`. :bug:`7`, :fdobug:`58771`
* Add :meth:`Surface.create_for_rectangle`. :pr:`13`
* Add :meth:`Surface.create_similar_image`. :pr:`15`
* Add :meth:`Surface.has_show_text_glyphs`
* Fix crash when the surface wrapper gets deallocated before the surface
object. :bug:`11`

:class:`Context`:
* Add :meth:`Context.in_clip`. :pr:`14`

:class:`PDFSurface`:
* Add :meth:`PDFSurface.restrict_to_version`. :pr:`16`
* Add :meth:`PDFSurface.get_versions`. :pr:`16`
* Add :meth:`PDFSurface.version_to_string`. :pr:`16`

:class:`SVGSurface`:
* Add :meth:`SVGSurface.restrict_to_version`
* Add :meth:`SVGSurface.get_versions`
* Add :meth:`SVGSurface.version_to_string`

:class:`XCBSurface`:
* Add :meth:`XCBSurface.set_size`

:class:`PSSurface`:
* Add :meth:`PSSurface.get_levels`
* Add :meth:`PSSurface.level_to_string`

:class:`Pattern`:
* Add :meth:`Pattern.set_filter`
* Add :meth:`Pattern.get_filter`

:class:`RecordingSurface`:
* Add :meth:`RecordingSurface.get_extents`

:class:`FontOptions`:
* Implement ``__eq__`` and ``__ne__``
* Add :meth:`FontOptions.copy`
* Add :meth:`FontOptions.hash`
* Add :meth:`FontOptions.equal`
* Add :meth:`FontOptions.merge`

:class:`ScaledFont`:
* Add :meth:`ScaledFont.get_ctm`
* Add :meth:`ScaledFont.get_font_matrix`
* Add :meth:`ScaledFont.get_font_options`

1.11.1

-------------------

This release fixes an ABI breakage. I missed that the original pycairo master
had already broken ABI compared to 1.10.0.

1.11.0

-------------------

This version is based on the Python 2 version of pycairo 1.10.0 and is API/ABI
compatible with both py2cairo 1.10.0 and py3cairo 1.10.0.

General Changes:
* Requires cairo 1.10.2+
* Switch to semantic versioning
* Switch build system to distutils/setup.py (xpyb integration can be
enabled with passing ``--enable-xpyb`` to setup.py build)
* Moved to GitHub: https://github.com/pygobject/pycairo

New Features:
* Python 3 support (API/ABI compatible with py3cairo 1.10.0) including
support for :exc:`cairo.Error`, :meth:`cairo.ImageSurface.get_data` and
:meth:`cairo.ImageSurface.create_for_data`, which were missing in
py3cairo.
* :class:`cairo.RecordingSurface` (:fdobug:`36854`,
`Torsten Landschoff <t.landschoffgmx.net>`__)
* :class:`cairo.Region`, :class:`cairo.RectangleInt` and
cairo.REGION_OVERLAP_*
(:fdobug:`44336`, `Bug Fly <mozbugboxyahoo.com.au>`__)

Bug Fixes:
* Fix crash when read()/write() methods of file objects passed to pycairo
raise exceptions.
* Fix possible value truncation of handles passed to Win32Surface and
Win32PrintingSurface on 64bit Windows. :fdobug:`57493`

1.10.0

-------------------

General Changes:
py2cairo 1.10.0 requires cairo 1.10.0 (or later).

New Constants:
cairo.FORMAT_RGB16_565

Bug Fixes:
* context.get_source().get_surface() fails :fdobug:`33013`
* Add support for './waf configure --libdir=XXX' :fdobug:`30230`

Documentation Changes:
* Upgrade to using Sphinx 1.0.7.
* Include html documentation in the pycairo archive file.

Build Changes:
* Update waf to 1.6.3
* Remove setup.py

Other Changes:
* Improve/simplify unicode filename support.
* Improve/simplify unicode text support.

1.8.10

-------------------

General Changes:
Pycairo 1.8.10 requires cairo 1.8.10 (or later).

New Classes/Types:
* Win32PrintingSurface
* XCBSurface - add XCB support using xpyb

Bug Fixes:
* Fix for libtool 2.2 (:fdobug:`27974`).
* Mingw32 and pypy fixes (:fdobug:`25203`).

Other Changes:
Tests updated.

The Win32PrintingSurface and XCBSurface changes mean that pycairo 1.8.10 is
not binary compatible with pycairo 1.8.8. So modules that use the pycairo C
API (like pygtk) will need to be recompiled to use pycairo 1.8.10.

1.8.8

------------------

General Changes:
* Pycairo 1.8.8 requires cairo 1.8.8 (or later).
* Move from CVS to git.
* Add support for the waf build tool.

Updated Methods:
* The PDF/PS/SVGSurface constructors now accept None as a filename.

Page 7 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.