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 CPCL commands›TEXT

TEXT — Text

Prints text with a font number, size and position. The rest of the line is taken as data.

Engine status: Partially rendered

The command is drawn but some of its parameters are ignored; the detail is in the note below.

Syntax

TEXT <font> <size> <x> <y> <data>

Example

! 0 200 200 210 1
PAGE-WIDTH 576
TEXT 4 0 30 40 Hello World
PRINT

Open this example in the preview →

Open the validator →

Rendered example

TEXT 4 0 30 40 Hello World

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

Parameters

ParameterMeaning
fontFont number; 0–7 have table heights, other values are drawn about 24 dots high
sizeFont sub-size; accepted but not applied by the Labelixa preview
x yStart position of the text in dots; fields are space-separated
dataThe rest of the line, printed as-is — no quotes needed

Common mistake

Quoting the data: CPCL takes the rest of the line verbatim, so TEXT 4 0 30 40 "Hello" prints the quote marks too.

The same job in other languages

ZPL equivalent: ^A · ^FD · Language comparison

All CPCL commands

! · PAGE-WIDTH · TEXT90 · TEXT180 · TEXT270 · BARCODE · LINE · BOX · EXPANDED-GRAPHICS · PRINT · FORM · CONTRAST · TONE · SPEED · JOURNAL · SETMAG · CENTER

All CPCL commands