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:
Value
Internally, the PM determines a reference point within a character string that is to be positioned over the starting point specified for the string.
If an application draws the string with either GpiCharString or GpiCharStringPos, the starting point specified for the string is the current position. If the application draws the string with either GpiCharStringAt or GpiCharStringPosAt, the starting point specified for the string is accepted as input by the function.