TXTRTT (Text Rotation) keyword in printer files

You use this field-level keyword to rotate any text contained in the field.

The format of the keyword is:

TXTRTT(field-rotation)

The field-rotation parameter is required and controls the rotation of the field. Valid values are 0, 90, 180, and 270 degrees.

Specify DEVTYPE(*AFPDS) on the CRTPRTF command when TXTRTT is specified in the file. If DEVTYPE is changed to anything other than *AFPDS, the keyword is ignored and a warning message is issued at print time.

Option indicators are valid for this keyword.

CHRSIZ is handled as graphic font and cannot be used with the field-level keyword TXTRTT.

Example 1

The following example shows how to specify the TXTRTT keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
     A*
     A          R REC1
     A            FLD05         10     35 15TXTRTT(90)
     A*
     A          R REC2
     A            FLD06          7S 2       TXTRTT(270)
     A                                      POSITION(6.5 13.8)
     A

FLD05 in REC1 is rotated 90 degrees.

FLD06 in REC2 is rotated 270 degrees.

Example 2

The following example shows how to specify the TXTRTT keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
      *
                R REC1
                  FLD05         16      3  5TXTRTT(0)
      *
                R REC2
                  FLD06         16          TXTRTT(270)
                                            POSITION(6 7)

Record 1 (REC1) field 5 (FLD05), shows the coding using the row/column method of positioning. Record 2 (REC2) field 6 (FLD06), shows the coding using the absolute method of positioning.

The following diagram shows:

  • The position of FLD05 in REC1 with the row/column method of positioning. Rotation is 0 degrees.
  • The position of FLD06 in REC2 with the absolute method of positioning. Rotation is 270 degrees.

Scale and position should not be considered in this diagram.

Graphic showing the resulting placement of fields described in example 2.

Text for field 5 begins in column 5 and extends along row 3. Text for field 6 begins in row 6 and extends upward along column 7.