Widget.createPangoLayout

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

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

class Widget
createPangoLayout
(
string text = null
)

Parameters

text string

text to set on the layout

Return Value

Type: pango.layout.Layout