Pango.FontMap.create_context
Description: Reference for Pango.FontMap.create_context

### Method

# Pango.FontMap.create_context

#### Declaration [src]

    PangoContext*
    pango_font_map_create_context (
      PangoFontMap* fontmap
    )

#### Description [src]

Creates a `PangoContext` connected to `fontmap`.

This is equivalent to `pango_context_new()` followed by `pango_context_set_font_map()`.

If you are using Pango as part of a higher-level system, that system may have it’s own way of create a `PangoContext`. For instance, the GTK toolkit has, among others, `gtk_widget_get_pango_context()`. Use those instead.

#### Return value

Returns: `PangoContext`
the newly allocated `PangoContext`, which should be freed with `g_object_unref()`.
Ownership of the data is transferred to the caller