### Class

# Pango Context

#### Description [src]

    final class Pango.Context : GObject.Object
    {
      /* No available fields */
    }

A `PangoContext` stores global information used to control the itemization process.

The information stored by `PangoContext` includes the fontmap used to look up fonts, and default values such as the default language, default gravity, or default font.

To obtain a `PangoContext`, use `pango_font_map_create_context()`.

#### Ancestors

- GObject

#### Constructors

###### pango_context_new

Creates a new `PangoContext` initialized to default values.

#### Instance methods

###### pango_context_changed

Forces a change in the context, which will cause any `PangoLayout` using this context to re-layout.

since: 1.32.4

###### pango_context_get_base_dir

Retrieves the base direction for the context.

###### pango_context_get_base_gravity

Retrieves the base gravity for the context.

since: 1.16

###### pango_context_get_font_description

Retrieve the default font description for the context.

###### pango_context_get_font_map

Gets the `PangoFontMap` used to look up fonts for this context.

since: 1.6

###### pango_context_get_gravity

Retrieves the gravity for the context.

since: 1.16

###### pango_context_get_gravity_hint

Retrieves the gravity hint for the context.

since: 1.16

###### pango_context_get_language

Retrieves the global language tag for the context.

###### pango_context_get_matrix

Gets the transformation matrix that will be applied when rendering with this context.

since: 1.6

###### pango_context_get_metrics

Get overall metric information for a particular font description.

###### pango_context_get_round_glyph_positions

Returns whether font rendering with this context should round glyph positions and widths.

since: 1.44

###### pango_context_get_serial

Returns the current serial number of `context`.

since: 1.32.4

###### pango_context_list_families

List all families for a context.

###### pango_context_load_font

Loads the font in one of the fontmaps in the context that is the closest match for `desc`.

###### pango_context_load_fontset

Load a set of fonts in the context that can be used to render a font matching `desc`.

###### pango_context_set_base_dir

Sets the base direction for the context.

###### pango_context_set_base_gravity

Sets the base gravity for the context.

since: 1.16

###### pango_context_set_font_description

Set the default font description for the context.

###### pango_context_set_font_map

Sets the font map to be searched when fonts are looked-up in this context.

###### pango_context_set_gravity_hint

Sets the gravity hint for the context.

since: 1.16

###### pango_context_set_language

Sets the global language tag for the context.

###### pango_context_set_matrix

Sets the transformation matrix that will be applied when rendering with this context.

since: 1.6

###### pango_context_set_round_glyph_positions

Sets whether font rendering with this context should round glyph positions and widths to integral positions, in device units.

since: 1.44

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct PangoContextClass {
      /* no available fields */
    }

No description available.