get_metrics


Description:

public virtual FontMetrics get_metrics (Language? language)

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 this is null, this function gracefully sets some sane values in the output variables and returns.

Parameters:

this

a `PangoFont`

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.

Returns:

a `PangoFontMetrics` object. The caller must call [[email protected]] when finished using the object.




2022 vala-language.org