fontAddGlyphOriginForDirection

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

Adds the origin coordinates to an (X,Y) point coordinate, in the specified glyph ID 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
xInput = The original X coordinate
OutputThe X coordinate plus the X-coordinate of the origin
yInput = The original Y coordinate
OutputThe Y coordinate plus the Y-coordinate of the origin