PangoLayout* gtk_widget_create_pango_layout ( GtkWidget* widget, const gchar* text )
Creates a new
PangoLayout with the appropriate font map,
font description, and base direction for drawing text for
If you keep a
PangoLayout created in this way around, you need
to re-create it when the widget
PangoContext is replaced.
This can be tracked by using the
on the widget.
Text to set on the layout (can be
The argument can be
The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|