cairocffi与pango发生错误

时间:2016-03-09 06:38:13

标签: cairo pycairo python-cffi pangocairo

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)

这可能是什么问题?

0 个答案:

没有答案