Sign In
Products
ZPL ViewerBarcode GeneratorImage → ZPLZPL cheat sheetLabel DesignerTemplate Gallery
Developers
API QuickstartAPI ReferenceMCP ServerBulk GenerationWebhooksSDKs & ExamplesLimitsDirectPrint agent NewGitHub ActionVS Code extensionOn-Premise
Solutions
Logistics & ShippingE-CommerceERP & WMSManufacturingRetailHealthcare & LaboratoryAll solutions
Tools
ZPL Diagnostics HubZPL DebuggerSize & DPI AnalyzerDPI ConverterBarcode fit calculatorShipping Label AnalyzerFont InspectorOrientation DebuggerCalibration AssistantPrinter Compatibility CheckerBarcode Readability CheckerPrinter Language DetectorThermal Printer Test PackZPL ToolsEPL ToolsTSPL ToolsCPCL ToolsPrinter Language ConverterAll ToolsGuidesPricing
Language
EnglishTürkçeDeutsch
Home›All TSPL commands›TEXT

TEXT — Text

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.

Syntax

TEXT x, y, "font", rot, xm, ym, "content"

Example

SIZE 100 mm, 150 mm
GAP 3 mm, 0 mm
CLS
TEXT 100, 100, "3", 0, 1, 1, "HELLO"
PRINT 1

Open this example in the preview →

Open the validator →

Rendered example

TEXT 100, 100, "3", 0, 1, 1, "HELLO"

Output of the example above in our renderer (203 dpi). Not verified on a physical printer.

Parameters

ParameterMeaning
x, yStart 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
rotRotation in degrees clockwise: 0, 90, 180 or 270
xmHorizontal magnification 1–10; the preview stretches the text by it
ymVertical magnification 1–10; the font height is multiplied by it
"content"The text in double quotes

Common mistake

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°.

The same job in other languages

ZPL equivalent: ^FO · ^A · ^FD · EPL A · Language comparison

All TSPL commands

SIZE · GAP · REFERENCE · CLS · BARCODE · QRCODE · BOX · BAR · BITMAP · PRINT · DIRECTION · DENSITY · SPEED · OFFSET · SET · CODEPAGE · BLINE

All TSPL commands