Package: gdk

Function gdk:pango-context-for-display

Lambda List

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

Arguments

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

Return Value

The 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 for the display. See the cairo:font-options-t API. 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.
 

See also

2024-6-28