Widget.getPangoContext

pango.context.Context getPangoContext()

Gets a pango.context.Context with the appropriate font map, font description, and base direction for this widget.

Unlike the context returned by gtk.widget.Widget.createPangoContext, this context is owned by the widget (it can be used until the screen for the widget changes or the widget is removed from its toplevel), and will be updated to match any changes to the widget’s attributes. This can be tracked by listening to changes of the gtk.widget.Widget.root property on the widget.

Returns

the pango.context.Context for the widget.