Gets the approximate character width for a font metrics structure.
Gets the approximate digit width for a font metrics structure.
Gets the ascent from a font metrics structure.
Gets the descent from a font metrics structure.
Gets the line height from a font metrics structure.
Gets the suggested position to draw the strikethrough.
Gets the suggested thickness to draw for the strikethrough.
Gets the suggested position to draw the underline.
Gets the suggested thickness to draw for the underline.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
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:
<picture> <source srcset="fontmetrics-dark.png" media="(prefers-color-scheme: dark)"> <img alt="Font metrics" src="fontmetrics-light.png"> </picture>