Widget.createPangoLayout

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

If you keep a gtk.Layout created in this way around, you need to re-create it when the widget gstreamer.Context is replaced. This can be tracked by using the screen-changed signal on the widget.

class Widget
createPangoLayout
(
string text
)

Parameters

text string

text to set on the layout (can be NULL)

Return Value

Type: PgLayout

the new gtk.Layout