Widget.createPangoContext

pango.context.Context createPangoContext()

Creates a new #PangoContext with the appropriate font map, font options, font description, and base direction for drawing text for this widget. See also [gtk.widget.Widget.getPangoContext].

Returns

the new #PangoContext