Pango.FontMap
Description: Reference for Pango.FontMap

### Class

# PangoFontMap

#### Description [src]

    abstract class Pango.FontMap : GObject.Object {
      parent_instance: GObject
    }

A `PangoFontMap` represents the set of fonts available for a particular rendering system.

This is a virtual object with implementations being specific to particular rendering systems.

#### Ancestors

- GObject

#### Instance methods

###### pango_font_map_changed

Forces a change in the context, which will cause any `PangoContext` using this fontmap to change.

Available since: 1.34

###### pango_font_map_create_context

Creates a `PangoContext` connected to `fontmap`.

Available since: 1.22

###### pango_font_map_get_family

Gets a font family by name.

Available since: 1.46

###### pango_font_map_get_serial

Returns the current serial number of `fontmap`.

Available since: 1.32.4

###### pango_font_map_list_families

List all families for a fontmap.

###### pango_font_map_load_font

Load the font in the fontmap that is the closest match for `desc`.

###### pango_font_map_load_fontset

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

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

Please see GObject for a full list of methods.

#### Signals

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

###### GObject.Object::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 PangoFontMapClass {
      GObjectClass parent_class;
      PangoFont* (* load_font) (
        PangoFontMap* fontmap,
        PangoContext* context,
        const PangoFontDescription* desc
      );
      void (* list_families) (
        PangoFontMap* fontmap,
        PangoFontFamily*** families,
        int* n_families
      );
      PangoFontset* (* load_fontset) (
        PangoFontMap* fontmap,
        PangoContext* context,
        const PangoFontDescription* desc,
        PangoLanguage* language
      );
      const char* shape_engine_type;
      guint (* get_serial) (
        PangoFontMap* fontmap
      );
      void (* changed) (
        PangoFontMap* fontmap
      );
      PangoFontFamily* (* get_family) (
        PangoFontMap* fontmap,
        const char* name
      );
      PangoFontFace* (* get_face) (
        PangoFontMap* fontmap,
        PangoFont* font
      );

    }

###### Class members

`parent_class` |
    GObjectClass
| Parent `GObjectClass`
`load_font` |
    PangoFont* (* load_font) (
        PangoFontMap* fontmap,
        PangoContext* context,
        const PangoFontDescription* desc
      )
| No description available.
`list_families` |
    void (* list_families) (
        PangoFontMap* fontmap,
        PangoFontFamily*** families,
        int* n_families
      )
| No description available.
`load_fontset` |
    PangoFontset* (* load_fontset) (
        PangoFontMap* fontmap,
        PangoContext* context,
        const PangoFontDescription* desc,
        PangoLanguage* language
      )
| No description available.
`shape_engine_type` |
    const char*
| The type of rendering-system-dependent engines that can handle fonts of this fonts loaded with this fontmap.
`get_serial` |
    guint (* get_serial) (
        PangoFontMap* fontmap
      )
| No description available.
`changed` |
    void (* changed) (
        PangoFontMap* fontmap
      )
| No description available.
`get_family` |
    PangoFontFamily* (* get_family) (
        PangoFontMap* fontmap,
        const char* name
      )
| No description available.
`get_face` |
    PangoFontFace* (* get_face) (
        PangoFontMap* fontmap,
        PangoFont* font
      )
| No description available.

#### Virtual methods

###### Pango.FontMapClass.changed

Forces a change in the context, which will cause any `PangoContext` using this fontmap to change.

Available since: 1.34

###### Pango.FontMapClass.get_face

No description available.

###### Pango.FontMapClass.get_family

Gets a font family by name.

Available since: 1.46

###### Pango.FontMapClass.get_serial

Returns the current serial number of `fontmap`.

Available since: 1.32.4

###### Pango.FontMapClass.list_families

List all families for a fontmap.

###### Pango.FontMapClass.load_font

Load the font in the fontmap that is the closest match for `desc`.

###### Pango.FontMapClass.load_fontset

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