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 with the text to set on the 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 object created in this way around, in order to notify the layout of changes to the base direction or font of this widget, you must call the pango-layout-context-changed function in response to the "style-updated" and "direction-changed" signals for the widget.
 

See also

2021-9-19