| |
 |  |  |  | Command |  | Argument |
 | Datatype |  | Default |  | Min |  | Max |  |
 |  | Format: |  | PosText | | X
= Cursor X-position in Angstroms or percent, |  | FLOAT |  |
- |  | - |  | - |  |  | |  |
| | Y = Cursor Y-position in Angstroms or percent, |  | FLOAT |  | - |  | - |  | - |
 |
 | |  | | | justify = Left | Center | Right |  | STRING |  | - |  | - |  | - |
 |  |  | Python: |  | PosText(x,y,justify) |  |  |
 | Menu: |  | Effects > Text > Position |
 |  |  | Related: |  | Font, Print
, MakeTextObj, PrintObj
, PrintCon, PrintHUD
|  |  |
 | Required: |  |  |  |
 |
When printing to an object, positions are best given in percent of the width
(X) and height (Y) of the current text object
. The coordinate system originates from the bottom left corner 0%/0% with the X-axis pointing right to
100%/0% and the Y-axis pointing up to 0%/100%. The given Y-position coincides with the baseline of the printed characters.
When printing to the HUD
, positions must be given in column/row format. There are 40x38 characters available,
position 1/1 is in the top left corner.
Example
1:
PosText 50%,50%,center
Position the cursor in the middle of the text object and print a centered text.
Example 2:
PosText 0%,100%,justify=left
Position the cursor in the top left corner of the text object and print a left-justified text.
|