create_pango_layout
Description:
Creates a new `PangoLayout` that is configured for the widget.
The `PangoLayout` will have the appropriate font map, font description, and base direction set.
If you keep a `PangoLayout` created in this way around, you need to re-create it when the widgets `PangoContext` is replaced. This can be tracked by listening to changes of the [property@Gtk.Widget:root] property on the widget.
Parameters:
this |
a widget |
text |
text to set on the layout |
Returns:
the new `PangoLayout` |