Package: gdk

Function gdk-pango-context-for-display

Lambda List

gdk-pango-context-for-display (display)

Arguments

display -- the gdk-display object for which the Pango context is to be created

Return Value

A new pango-context instance for display.

Details

Creates a Pango context for the display.

When using GTK, normally you should use the gtk-widget-pango-context function instead of this function, to get the appropriate Pango context for the widget you intend to render text onto.

The newly created Pango context will have the default font options, see the cairo-font-options-t API, for the display. If these options change it will not be updated. Using the gtk-widget-pango-context function is more convenient if you want to keep a Pango context around and track changes to the font rendering settings.

Since 3.22
 

See also

2021-10-28