Simon Sapin

Results 443 comments of Simon Sapin

Hi. Three things are going on here: - First, cairocffi does not support `cairo_region_t` and related functions. It’s not hard to add, just a bit tedious (as I want everything...

So this issue is about the first point of my previous message: cairo Regions in cairocffi. If someone is interested in doing this work, I’d be happy to provide guidance.

Yes, this would be nice to have. Cairo’s corresponding C functions can already be used through CFFI with e.g. `cairocffi.cairo.cairo_pattern_create_mesh()`. What’s missing is a new subclass of `cairocffi.Pattern` and its...

It’d be nice, but it’s not obvious how to do it. These constants are given by cairo as `#define` C preprocessor macros. pycairo is itself written in C, includes `cairo.h`,...

I’ve just thought of a work-around: just try to use a cairo function, and catch whatever exception CFFI raises for not finding the corresponding symbol.

… which is pretty much what Behdad Esfahbod suggests: https://bugs.freedesktop.org/show_bug.cgi?id=83050#c1 > Well, it would be more convenient for something like cairocffi to try to load a symbol and see if...

Hi. I don’t know what cairo-map-to-image is, and Google Search is not very helpful. Can you explain?

Ok, I see. This is the [`cairo_surface_map_to_image`](http://cairographics.org/manual/cairo-cairo-surface-t.html#cairo-surface-map-to-image) function. It does not have bindings in cairocffi yet. I’d review a pull request to add it. It would not be a lot...

Can you check what symbols are in the `.so` file? ``` readelf -Ws /usr/lib64/python2.7/site-packages/cairo/_cairo.so ``` (I don’t know how to use Docker, and I’m not all that interested.)

On my system this shows a number of symbols that start with `Pycairo` for the C API: http://cairographics.org/documentation/pycairo/2/pycairo_c_api.html I don’t know where they are on your system, but that’s not...