Alignment and location
The alignment or justification of the text is controlled by the keyword
TEXTALIGN. The origin
of the text is always the lower left corner of the string.
The alignment determines where this origin is placed with respect to a reference point.
See the figure and the table below. The default value of
TEXTALIGN is 1 (the origin is the same as the reference point).
If TEXTINTERACTIVE ≠ 0,
then the graphics cursor is used to interactively determine the reference point to place a
text string when drawn by the TEXT command.
If TEXTINTERACTIVE = 0, then
XTEXTLOCATION and
YTEXTLOCATION will
be used to determine the reference point for the character string.

|
||||||||||||
1 |
x0 = xref | y0 = yref | ||||||||||
2 |
x0 = xref - L/2 | y0 = yref | ||||||||||
3 |
x0 = xref - L | y0 = yref | ||||||||||
4 |
x0 = xref | y0 = yref - H/2 | ||||||||||
5 |
x0 = xref - L/2 | y0 = yref - H/2 | ||||||||||
6 |
x0 = xref - L | y0 = yref - H/2 | ||||||||||
7 |
x0 = xref | y0 = yref - H | ||||||||||
8 |
x0 = xref - L/2 | y0 = yref - H | ||||||||||
9 |
x0 = xref - L | y0 = yref - H | ||||||||||
10 |
x0 = xref | y0 = yref a = 90° | ||||||||||
11 |
x0 = xref | y0 = yref a = 270° | ||||||||||
12 |
x0 = xref - L/2 | y0 = yref a = 90° | ||||||||||