FontMap.createContext

Creates a pango.context.Context connected to fontmap.

This is equivalent to pango.context.Context.new_ followed by pango.context.Context.setFontMap.

If you are using Pango as part of a higher-level system, that system may have it's own way of create a pango.context.Context. For instance, the GTK toolkit has, among others, gtk.widget.Widget.getPangoContext. Use those instead.

class FontMap
createContext
()

Return Value

Type: pango.context.Context

the newly allocated pango.context.Context, which should be freed with gobject.object.ObjectG.unref.