fontGetGlyphAdvanceForDirection

Fetches the advance for a glyph ID from the specified 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

glyph harfbuzz.types.Codepoint

The glyph ID to query

direction harfbuzz.types.Direction

The direction of the text segment

x harfbuzz.types.Position

The horizontal advance retrieved

y harfbuzz.types.Position

The vertical advance retrieved