context = cairocffi.Context(surface)
# pangocairo.pango_cairo_set_antialias(cairo.ANTIALIAS_SUBPIXEL)
context.translate(movex, movey)
context.rotate(twist)
layout = gobject_ref(pangocairo.pango_cairo_create_layout(context._pointer))
在这段代码的最后一行中,cairocffi给出了一个奇怪的错误
TypeError: initializer for ctype 'cairo_t *' appears indeed to be 'cairo_t *', but the types are different (check that you are not e.g. mixing up different ffi instances)
这可能是什么问题?