fontGetExtentsForDirection

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.

Parameters

font harfbuzz.font.Font

#hb_font_t to work upon

direction harfbuzz.types.Direction

The direction of the text segment

extents harfbuzz.types.FontExtents

The #hb_font_extents_t retrieved