Pycairo

Latest version: v1.27.0

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

Scan your dependencies

Page 9 of 11

1.4.0

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

General changes:
Pycairo 1.4.0 requires cairo 1.4.0 (or later).

New methods:
| Context.clip_extents
| Context.copy_clip_rectangles
| Context.get_dash
| Context.get_dash_count
| Context.get_scaled_font
| Context.glyph_extents
| Context.glyph_path
| Context.show_glyphs
| LinearGradient.get_linear_points
| RadialGradient.get_radial_circles
| SolidPattern.get_rgba
| SurfacePattern.get_surface

Deleted methods:
ImageSurface.create_for_array
Remove Numeric Python support, since Numeric has been made obsolete by
numpy, and numpy data can be read using ImageSurface.create_for_data.

Other changes:
the module cairo.gtk has been removed (pygtk 2.7.0 onwards has cairo
support built in).

1.2.6

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

* Pycairo 1.2.6 requires cairo 1.2.6 (or later).
* mingw32 compiler fixes (Cedric Gustin)
* setup.py improvements (Cedric Gustin)
* ImageSurface.get_data() new method added
ImageSurface.get_data_as_rgba() method removed

1.2.2

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

* Pycairo requires cairo 1.2.2 (or later).
* setup.py has been updated to allow installation by executing
$ python setup.py install
* examples/cairo_snippets/snippets/gradient_mask.py
A new example to demonstrate pattern masks.
* The cairo.svg module has been removed because:

1) Cairo does not include SVG parsing, so this module does not belong
in pycairo.
2) libsvg-cairo (the underlying C library) is unmaintained.

1.2.0

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

General changes:
Pycairo has been updated to work with cairo 1.2.0.

New methods:
| Surface.set_fallback_resolution
| Surface_get_content
| ImageSurface_get_format
| Image_surface_get_stride

Deleted methods:
PDFSurface.set_dpi, PSSurface.set_dpi, SVGSurface.set_dpi
- replaced by Surface.set_fallback_resolution

Other changes:
cairo.FORMAT_RGB16_565 added

1.1.6

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

General changes:
Pycairo has been updated to work with cairo 1.1.6.

New objects:
SVGSurface

New methods:
| Context.get_group_target
| Context.new_sub_path
| Context.pop_group
| Context.pop_group_to_source
| Context.push_group
| Context.push_group_with_content
| FontOptions.get_antialias
| FontOptions.get_hint_metrics
| FontOptions.get_hint_style
| FontOptions.get_subpixel_order
| FontOptions.set_antialias
| FontOptions.set_hint_metrics
| FontOptions.set_hint_style
| FontOptions.set_subpixel_order
| PDFSurface.set_size
| PSSurface.dsc_begin_page_setup
| PSSurface.dsc_begin_setup
| PSSurface.dsc_comment
| PSSurface.set_size
| ScaledFont.get_font_face
| ScaledFont.text_extents
| Surface.get_device_offset
| XlibSurface.get_depth

Updated methods:
PDFSurface()/PSSurface() - can now write to file-like objects (like
StringIO).

surface.write_to_png() and ImageSurface.create_from_png() can now write to
file-like objects (like StringIO).

select_font_face, show_text, text_extents and text_path now accept unicode
objects.

Other changes:
misc bug fixes.

New examples:
| examples/cairo_snippets/snippets_svg.py
| examples/cairo_snippets/snippets/ellipse.py
| examples/cairo_snippets/snippets/group.py
| examples/svg/svgconvert.py

1.0.2

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

General changes:
Pycairo has been updated to work with cairo 1.0.2.

New cairo functions supported:
cairo.ImageSurface.create_for_data()

Updated functions:
ctx.set_source_rgba (r, g, b, a=1.0) now supports a default alpha argument

Other changes:
cairo.Matrix now supports the Python sequence protocol, so you can do:
xx, yx, xy, yy, x0, y0 = matrix

Page 9 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.