Center Justification of Printed Text in PCL 5

without concern for character widths.

  1. Define a macro containing the text to be right justified. In the following example, that is id number 1022
  2. Position the cursor to the center of the desired text position
  3. Set pattern transparency to transparent and pattern to solid white
  4. Set print direction to 180 degrees
  5. Set the point size to half that of the actual desired size
  6. Execute the macro containing the printable text.
  7. Set pattern transparency to opaque and pattern to solid black
  8. Set print direction to 0 degrees
  9. Set the point size to the actual desired size
  10. Execute the macro containing the printable text.
<esc>*p4798x540Y<esc>*vo1T<esc>&a180P<esc>(s3V<esc>&f1022Y<esc>&f2X<esc>*v1oT<esc>&a0P<esc>(s6V<esc>&f1022Y<esc>&f2X

Questions:

See:

Comments: