Package: gtk

Function gtk:widget-create-pango-layout

Lambda List

gtk:widget-create-pango-layout (widget text)

Arguments

widget -- a gtk:widget object
text -- a string for the text to set on the Pango layout, can be nil

Return Value

The new pango:layout object.

Details

Creates a new pango:layout object with the appropriate font map, font description, and base direction for drawing text for this widget.

If you keep a Pango layout created in this way around, you need to re-create it when the Pango context of the widget is replaced. This can be tracked by listening to changes of the root property on the widget.
 

See also

2025-07-24