Widget.createPangoContext

pango.context.Context createPangoContext()

Creates a new pango.context.Context 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