Struct

Pango.FontMetrics

Description [src]

struct PangoFontMetrics {
  /* No available fields */
}

A PangoFontMetrics structure holds the overall metric information for a font.

The information in a PangoFontMetrics structure may be restricted to a script. The fields of this structure are private to implementations of a font backend. See the documentation of the corresponding getters for documentation of their meaning.

Instance methods

pango_font_metrics_get_approximate_char_width

Gets the approximate character width for a font metrics structure.

pango_font_metrics_get_approximate_digit_width

Gets the approximate digit width for a font metrics structure.

pango_font_metrics_get_ascent

Gets the ascent from a font metrics structure.

pango_font_metrics_get_descent

Gets the descent from a font metrics structure.

pango_font_metrics_get_height

Gets the line height from a font metrics structure.

Available since: 1.44

pango_font_metrics_get_strikethrough_position

Gets the suggested position to draw the strikethrough.

Available since: 1.6

pango_font_metrics_get_strikethrough_thickness

Gets the suggested thickness to draw for the strikethrough.

Available since: 1.6

pango_font_metrics_get_underline_position

Gets the suggested position to draw the underline.

Available since: 1.6

pango_font_metrics_get_underline_thickness

Gets the suggested thickness to draw for the underline.

Available since: 1.6

pango_font_metrics_ref

Increase the reference count of a font metrics structure by one.

pango_font_metrics_unref

Decrease the reference count of a font metrics structure by one. If the result is zero, frees the structure and any associated memory.