updateContext

fnvoid updateContext(cairo.context.Context cr, pango.context.Context context)

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

cra Cairo context
contexta [pango.context.Context], from a pangocairo font map