pangoContextGetForScreen

fnpango.context.Context pangoContextGetForScreen(gdk.screen.Screen screen)

Creates a #PangoContext for screen.

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

When using GTK+, normally you should use [gtk.widget.Widget.getPangoContext] 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 screen; if these options change it will not be updated. Using [gtk.widget.Widget.getPangoContext] is more convenient if you want to keep a context around and track changes to the screen’s font rendering settings.

Parameters

screenthe #GdkScreen for which the context is to be created.

Returns

a new #PangoContext for screen