Package: gtk

Function gtk:widget-pango-context

Lambda List

gtk:widget-pango-context (widget)

Arguments

widget -- a gtk:widget object

Return Value

The pango:context object for the widget.

Details

Gets a Pango context with the appropriate font map, font description, and base direction for this widget. Unlike the Pango context returned by the gtk:widget-create-pango-context function, this Pango 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 attributes of the widget. This can be tracked by listening to changes of the root property on the widget.
 

See also

2025-07-24