Character text alignment is the attribute that describes how the character strings are drawn with respect to the boundary of the output, either the current position or the starting position of the string, if a GpiCharString...At function draws the string. The alignment is set using GpiSetTextAlignment, which accepts as input a long value for horizontal and vertical alignment.

The acceptable values for GpiSetTextAlignment depend on the direction of the current coordinate system, as follows: