pango.font_metrics

Module for [FontMetrics] struct

Types 1

A pango.font_metrics.FontMetrics structure holds the overall metric information for a font.

The information in a pango.font_metrics.FontMetrics 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.

For an overview of the most important metrics, see:

Font metrics

Fields
uint refCount
int ascent
int descent
int height
int approximateCharWidth
int approximateDigitWidth
int underlinePosition
int underlineThickness
int strikethroughPosition
int strikethroughThickness
Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
void * boxCopy() nothrow
int getApproximateCharWidth() nothrowGets the approximate character width for a font metrics structure.
int getApproximateDigitWidth() nothrowGets the approximate digit width for a font metrics structure.
int getAscent() nothrowGets the ascent from a font metrics structure.
int getDescent() nothrowGets the descent from a font metrics structure.
int getHeight() nothrowGets the line height from a font metrics structure.
int getStrikethroughPosition() nothrowGets the suggested position to draw the strikethrough.
int getStrikethroughThickness() nothrowGets the suggested thickness to draw for the strikethrough. Returns: the suggested strikethrough thickness, in Pango units.
int getUnderlinePosition() nothrowGets the suggested position to draw the underline.
int getUnderlineThickness() nothrowGets the suggested thickness to draw for the underline. Returns: the suggested underline thickness, in Pango units.