fontGetExtentsForDirection

fun fontGetExtentsForDirection(font: Font, direction: Direction, extents: FontExtents)

Fetches the extents for a font in a text segment of the specified direction.

Calls the appropriate direction-specific variant (horizontal or vertical) depending on the value of @direction.

Since

1.1.3

Parameters

font

#hb_font_t to work upon

direction

The direction of the text segment

extents

The #hb_glyph_extents_t retrieved