### Class

# Pango Font

since: 1.0

#### Description [src]

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

A `PangoFont` is used to represent a font in a rendering-system-independent manner.

Available since: 1.0

#### Ancestors

- GObject

#### Functions

###### pango_font_descriptions_free

Frees an array of font descriptions.

since: 1.0

###### pango_font_deserialize

Loads data previously created via `pango_font_serialize()`.

since: 1.50

#### Instance methods

###### pango_font_describe

Returns a description of the font, with font size set in points.

since: 1.0

###### pango_font_describe_with_absolute_size

Returns a description of the font, with absolute font size set in device units.

since: 1.14

###### pango_font_get_coverage

Computes the coverage map for a given font and language tag.

since: 1.0

###### pango_font_get_face

Gets the `PangoFontFace` to which `font` belongs.

since: 1.46

###### pango_font_get_features

Obtain the OpenType features that are provided by the font.

since: 1.44

###### pango_font_get_font_map

Gets the font map for which the font was created.

since: 1.10

###### pango_font_get_glyph_extents

Gets the logical and ink extents of a glyph within a font.

since: 1.0

###### pango_font_get_hb_font

Get a `hb_font_t` object backing this font.

since: 1.44

###### pango_font_get_languages

Returns the languages that are supported by `font`.

since: 1.50

###### pango_font_get_metrics

Gets overall metric information for a font.

since: 1.0

###### pango_font_has_char

Returns whether the font provides a glyph for this character.

since: 1.44

###### pango_font_serialize

Serializes the `font` in a way that can be uniquely identified.

since: 1.50

##### 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 PangoFontClass {
      GObjectClass parent_class;
      PangoFontDescription* (* describe) (
        PangoFont* font
      );
      PangoCoverage* (* get_coverage) (
        PangoFont* font,
        PangoLanguage* language
      );
      void (* get_glyph_extents) (
        PangoFont* font,
        PangoGlyph glyph,
        PangoRectangle* ink_rect,
        PangoRectangle* logical_rect
      );
      PangoFontMetrics* (* get_metrics) (
        PangoFont* font,
        PangoLanguage* language
      );
      PangoFontMap* (* get_font_map) (
        PangoFont* font
      );
      PangoFontDescription* (* describe_absolute) (
        PangoFont* font
      );
      void (* get_features) (
        PangoFont* font,
        hb_feature_t* features,
        guint len,
        guint* num_features
      );
      hb_font_t* (* create_hb_font) (
        PangoFont* font
      );

    }

No description available.

###### Class members

`parent_class: GObjectClass`
  No description available.
`describe: PangoFontDescription* (* describe) ( PangoFont* font )`
  No description available.
`get_coverage: PangoCoverage* (* get_coverage) ( PangoFont* font, PangoLanguage* language )`
  No description available.
`get_glyph_extents: void (* get_glyph_extents) ( PangoFont* font, PangoGlyph glyph, PangoRectangle* ink_rect, PangoRectangle* logical_rect )`
  No description available.
`get_metrics: PangoFontMetrics* (* get_metrics) ( PangoFont* font, PangoLanguage* language )`
  No description available.
`get_font_map: PangoFontMap* (* get_font_map) ( PangoFont* font )`
  No description available.
`describe_absolute: PangoFontDescription* (* describe_absolute) ( PangoFont* font )`
  No description available.
`get_features: void (* get_features) ( PangoFont* font, hb_feature_t* features, guint len, guint* num_features )`
  No description available.
`create_hb_font: hb_font_t* (* create_hb_font) ( PangoFont* font )`
  No description available.

#### Virtual methods

###### Pango.FontClass.create_hb_font

No description available.

since: 1.0

###### Pango.FontClass.describe

Returns a description of the font, with font size set in points.

since: 1.0

###### Pango.FontClass.describe_absolute

No description available.

since: 1.0

###### Pango.FontClass.get_coverage

Computes the coverage map for a given font and language tag.

since: 1.0

###### Pango.FontClass.get_features

Obtain the OpenType features that are provided by the font.

since: 1.44

###### Pango.FontClass.get_font_map

Gets the font map for which the font was created.

since: 1.10

###### Pango.FontClass.get_glyph_extents

Gets the logical and ink extents of a glyph within a font.

since: 1.0

###### Pango.FontClass.get_metrics

Gets overall metric information for a font.

since: 1.0