Method
Pango.Context.get_metrics
Declaration [src]
PangoFontMetrics*
pango_context_get_metrics (
PangoContext* context,
const PangoFontDescription* desc,
PangoLanguage* language
)
Description [src]
Get overall metric information for a particular font description.
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.
The PangoFontDescription
is interpreted in the same way as by pango_itemize()
,
and the family name may be a comma separated list of names. If characters
from multiple of these families would be used to render the string, then
the returned fonts would be a composite of the metrics for the fonts loaded
for the individual families.
Parameters
desc |
PangoFontDescription |
a |
|
Can be NULL | |
The data is owned by the caller of the function | |
language |
PangoLanguage |
language tag used to determine which script to get
the metrics for. |
|
Can be NULL | |
The data is owned by the caller of the function |
Return value
Returns: PangoFontMetrics |
|
a |
|
The caller of the function takes ownership of the data, and is responsible for freeing it |