### Class

# Pango Fontset

since: 1.0

#### Description [src]

    abstract class Pango.Fontset : GObject.Object
    {
      /* No available fields */
    }

A `PangoFontset` represents a set of `PangoFont` to use when rendering text.

A `PangoFontset` is the result of resolving a `PangoFontDescription` against a particular `PangoContext`. It has operations for finding the component font for a particular Unicode character, and for finding a composite set of metrics for the entire fontset.

Available since: 1.0

#### Ancestors

- GObject

#### Descendants

- PangoFontsetSimple

#### Instance methods

###### pango_fontset_foreach

Iterates through all the fonts in a fontset, calling `func` for each one.

since: 1.4

###### pango_fontset_get_font

Returns the font in the fontset that contains the best glyph for a Unicode character.

since: 1.0

###### pango_fontset_get_metrics

Get overall metric information for the fonts in the fontset.

since: 1.0

##### 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.

unstable since: 2.0

#### Class structure

    struct PangoFontsetClass {
      GObjectClass parent_class;
      PangoFont* (* get_font) (
        PangoFontset* fontset,
        guint wc
      );
      PangoFontMetrics* (* get_metrics) (
        PangoFontset* fontset
      );
      PangoLanguage* (* get_language) (
        PangoFontset* fontset
      );
      void (* foreach) (
        PangoFontset* fontset,
        PangoFontsetForeachFunc func,
        gpointer data
      );
      void (* _pango_reserved1) (
    void
      );
      void (* _pango_reserved2) (
    void
      );
      void (* _pango_reserved3) (
    void
      );
      void (* _pango_reserved4) (
    void
      );

    }

The `PangoFontsetClass` structure holds the virtual functions for a particular `PangoFontset` implementation.

###### Class members

`parent_class: GObjectClass`

  Parent `GObjectClass`

`get_font: PangoFont* (* get_font) ( PangoFontset* fontset, guint wc )`

  A function to get the font in the fontset that contains the best glyph for the given Unicode character; see `pango_fontset_get_font()`

`get_metrics: PangoFontMetrics* (* get_metrics) ( PangoFontset* fontset )`

  A function to get overall metric information for the fonts in the fontset; see `pango_fontset_get_metrics()`

`get_language: PangoLanguage* (* get_language) ( PangoFontset* fontset )`

  A function to get the language of the fontset.

`foreach: void (* foreach) ( PangoFontset* fontset, PangoFontsetForeachFunc func, gpointer data )`

  A function to loop over the fonts in the fontset. See `pango_fontset_foreach()`

`_pango_reserved1: void (* _pango_reserved1) ( void )`
  No description available.
`_pango_reserved2: void (* _pango_reserved2) ( void )`
  No description available.
`_pango_reserved3: void (* _pango_reserved3) ( void )`
  No description available.
`_pango_reserved4: void (* _pango_reserved4) ( void )`
  No description available.

#### Virtual methods

###### Pango.FontsetClass.foreach

Iterates through all the fonts in a fontset, calling `func` for each one.

since: 1.4

###### Pango.FontsetClass.get_font

Returns the font in the fontset that contains the best glyph for a Unicode character.

since: 1.0

###### Pango.FontsetClass.get_language

A function to get the language of the fontset.

since: 1.0

###### Pango.FontsetClass.get_metrics

Get overall metric information for the fonts in the fontset.

since: 1.0