[cairo] pycairo record surface
stevech1097 at yahoo.com.au
Sun Jun 19 22:33:40 PDT 2011
On Wed, 2011-06-15 at 12:00 -0700, cairo-request at cairographics.org
> I previously asked about finding the extents of a drawing and was told
> to use the recording surface, added in cairo 1.10. Since then pycairo
> 1.10.0 has been released, but it still does not have a recording
> surface in it. Will it be added to a future version, or is there
> another method to measure extents.
The recording surface was first documented in cairo 1.10.2.
Pycairo 1.10.2 (when it is released in about a month) will support the
new recording surface. The changes are already in the git repository, so
you download and test the code if you wish.
> Also it seems that a lot of python bindings are switching to gobject
> introspection. cairo seems to have some gi, for example I can do:
> >>> from gi.repository import cairo
> but then i can't do anything useful. Is this porting only partly done.
> Will there be a full migration in the future?
My understanding is that the Python bindings switching to gobject
introspection are the bindings to C libraries that are build on top of
the C GObject. The C cairo library is not built on top of GObject so
gobject introspection for cairo is not possible.
I think there is a separate cairo-gobject project but I don't know what
the status of it is, the C developers on the list should be able to give
you more info.
More information about the cairo