PgContext.this

Creates a new gstreamer.Context initialized to default values.

This function is not particularly useful as it should always be followed by a Context.setFontMap call, and the function pango_font_map_create_context() does these two steps together and hence users are recommended to use that.

If you are using Pango as part of a higher-level system, that system may have it's own way of create a gstreamer.Context For instance, the GTK+ toolkit has, among others, Pango.contextGetForScreen, and Widget.getPangoContext. Use those instead.

Return Value

the newly allocated gstreamer.Context, which should be freed with g_object_unref().

Throws

ConstructionException GTK+ fails to create the object.