Function

Gdkpango_context_get_for_display

since: 3.22

Declaration [src]

PangoContext*
gdk_pango_context_get_for_display (
  GdkDisplay* display
)

Description [src]

Creates a PangoContext for display.

The context must be freed when you’re finished with it.

When using GTK+, normally you should use gtk_widget_get_pango_context() instead of this function, to get the appropriate context for the widget you intend to render text onto.

The newly created context will have the default font options (see #cairo_font_options_t) for the display; if these options change it will not be updated. Using gtk_widget_get_pango_context() is more convenient if you want to keep a context around and track changes to the font rendering settings.

Available since: 3.22

Parameters

display

Type: GdkDisplay

The GdkDisplay for which the context is to be created.

The data is owned by the caller of the function.

Return value

Type: PangoContext

A new PangoContext for display.

The caller of the function takes ownership of the data, and is responsible for freeing it.