pycairo icon indicating copy to clipboard operation
pycairo copied to clipboard

Python bindings for cairo

Results 79 pycairo issues
Sort by recently updated
recently updated
newest added

On [Cairo's Download Page](https://cairographics.org/download/), it states that: > Precompiled binaries for Windows platforms can be obtained in a variety of ways. > Since GTK+ 2.8 and newer depends on Cairo,...

Pycairo seems to be incorrectly rendering certain cubic Bezier splines. The joins are incorrect and the line width changes. ![bug](https://user-images.githubusercontent.com/37314443/211076659-8eeff58c-826c-4e69-b569-003737023946.png) Here is the code to reproduce the effect: ```python import...

This was also attempted in #248 and #277. In Python 3.8, Python changed the behavior to no longer automatically import DLLs from the Path. Unfortunately, Pycairo is effectively broken in...

`Building wheel for pycairo (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pycairo (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [12 lines of output] running bdist_wheel...

Hi I am new to stream development. I ask chatGPT to provide me with some code in python for streaming from my cell phone camera to a rtmp server. The...

I didn't manage to convert this animated svg into a png sequence. Is it possible ![anim](https://user-images.githubusercontent.com/35609308/219145753-731b954d-2418-4687-bcdb-e39145c119be.svg)

I was toying with PyCairo to see if it had the capability to display emojis from the [OpenMoji SVG-in-OT font](https://openmoji.org). ```python import cairo import gi gi.require_version("Gtk", "3.0") from gi.repository import...

Hi! I've been trying to draw a circle with subpixel accuracy. I am using red paint as the source and a circle as the path. E.g. Red filled circle of...

[Here in `tests/test_surface_numpy.py`](https://github.com/pygobject/pycairo/blob/6549510c125e0b1ffdafd33f484c936f4aefda82/tests/test_surface_numpy.py#L54), `shape` should be `(h, w)` rather than `(w, h)`. It currenlty works correctly only because `w` and `h` are equal. An older version of this code used...

The following code produces PDF file with weird character spacing: ``` import cairo as cr from gi.repository import Pango, PangoCairo with cr.PDFSurface("example.pdf", 595, 842) as surf: fontmap = PangoCairo.font_map_new() fontmap.set_resolution(300)...