getMetrics

open fun getMetrics(language: Language? = null): FontMetrics

Gets overall metric information for a font.

Since the metrics may be substantially different for different scripts, a language tag can be provided to indicate that the metrics should be retrieved that correspond to the script(s) used by that language.

If @font is null, this function gracefully sets some sane values in the output variables and returns.

Return

a PangoFontMetrics object. The caller must call method@Pango.FontMetrics.unref when finished using the object.

Parameters

language

language tag used to determine which script to get the metrics for, or null to indicate to get the metrics for the entire font.