updateContext

Updates a pango.context.Context previously created for use with Cairo to match the current transformation and target surface of a Cairo context.

If any layouts have been created for the context, it's necessary to call pango.layout.Layout.contextChanged on those layouts.

Parameters

cr cairo.context.Context

a Cairo context

context pango.context.Context

a pango.context.Context, from a pangocairo font map