The “SET TEXT ALIGNMENT” command can control how the “TEXT DISPLAY” command places text on the screen. The following commands draw a rectangle, set the text alignment to centered horizontally and vertically, and draw a string centered in the box:
r 100 100 300 150
t “Centered!” 200 125
Note: The horizontal alignment setting reverts to “L” after the text is written.