Package: pango

Function pango-font-metrics

Lambda List

pango-font-metrics (font language)

Arguments

font -- a pango-font object
language -- a pango-language tag used to determine which script to get the metrics for, or nil to indicate to get the metrics for the entire font

Return Value

A pango-font-metrics instance. The caller must call the function pango-font-metrics-unref when finished using the object.

Details

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

See also

2021-1-8