Package: gdk

Function gdk-pango-context-for-screen

Lambda List

gdk-pango-context-for-screen (screen)

Arguments

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

Return Value

A new pango-context instance for screen.

Details

Creates a Pango context for the 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 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 screens font rendering settings.
 

See also

2021-10-28