fontGetGlyphOriginForDirection

fnvoid fontGetGlyphOriginForDirection(harfbuzz.font.Font font, harfbuzz.types.Codepoint glyph, harfbuzz.types.Direction direction, out harfbuzz.types.Position x, out harfbuzz.types.Position y)

Fetches the (X,Y) coordinates of the origin for a glyph in the specified font.

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

Parameters

font#hb_font_t to work upon
glyphThe glyph ID to query
directionThe direction of the text segment
xThe X coordinate retrieved for the origin
yThe Y coordinate retrieved for the origin