Widget.createPangoContext
pango.context.Context createPangoContext() nothrowCreates 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
the new pango.context.Context