add_glyph_origin_for_direction


Description:

[ Version ( since = "0.9.2" ) ]
public void add_glyph_origin_for_direction (Codepoint glyph, Direction direction, out Position x, out 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:

glyph

The glyph ID to query

direction

The direction of the text segment

x

Input = The original X coordinate Output = The X coordinate plus the X-coordinate of the origin

y

Input = The original Y coordinate Output = The Y coordinate plus the Y-coordinate of the origin

font

Font to work upon