Prints text at the given position with a font name, rotation and magnification parameters.
Engine status: Partially rendered
The command is drawn but some of its parameters are ignored; the detail is in the note below.
TEXT x, y, "font", rot, xm, ym, "content"SIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
TEXT 100, 100, "3", 0, 1, 1, "HELLO"
PRINT 1Open this example in the preview →
Output of the example above in our renderer (203 dpi). Not verified on a physical printer.
| Parameter | Meaning |
|---|---|
x, y | Start of the text in dots, relative to the REFERENCE origin |
"font" | Font name in double quotes; 0–8 are built in, other names are approximated by their number |
rot | Rotation in degrees clockwise: 0, 90, 180 or 270 |
xm | Horizontal magnification 1–10; the preview stretches the text by it |
ym | Vertical magnification 1–10; the font height is multiplied by it |
"content" | The text in double quotes |
Using EPL rotation codes: TSPL rotation is in degrees, so a rotation of 1 is invalid — the validator flags it and the preview draws the text at 0°.
ZPL equivalent: ^FO · ^A · ^FD · EPL A · Language comparison
SIZE · GAP · REFERENCE · CLS · BARCODE · QRCODE · BOX · BAR · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE