Gtk.Widget.prototype.create_pango_context

function create_pango_context():Pango.Context {
    // Gjs wrapper for gtk_widget_create_pango_context()
}

Creates a new Pango.Context with the appropriate font map, font description, and base direction for drawing text for this widget. See also Gtk.get_pango_context.

Returns

the new Pango.Context