ot_layout_get_font_extents


Description:


[ Version ( since = "8.0.0" ) ]
public Bool ot_layout_get_font_extents (Font font, Direction direction, Tag script_tag, Tag language_tag, out unowned FontExtents? extents)

Fetches script/language-specific font extents.

These values are looked up in the `BASE` table's `MinMax` records.

If no such extents are found, the default extents for the font are fetched. As such, the return value of this function can for the most part be ignored. Note that the per-script/language extents do not have a line-gap value, and the line-gap is set to zero in that case.

Parameters:

font

a font

direction

text direction.

script_tag

script tag.

language_tag

language tag.

extents

font extents if found.

Returns:

`true` if found script/language-specific font extents.


Namespace: HarfBuzz