Package: gdk

Function gdk-pango-context-get

Lambda List

gdk-pango-context-get ()

Return Value

A new pango-context instance for the default GDK screen.

Details

Creates a pango-context instance for the default GDK screen.

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 default screen. 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 of the screen.
 

See also

2021-10-28