^TB Text Blocks
Prints a text block of a defined width and height with automatic word wrap and support for complex text layout. Text beyond the block height is truncated.
^TBa,b,c
^TB parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
ablock rotationp. 356 |
How the block is rotated. |
|
Whatever was specified by the last |
bblock width in dotsp. 356 |
The width of the block. |
1 up to the width of the label, in dots. |
11 dot. |
cblock height in dotsp. 356 |
The height of the block. |
1 up to the length of the label, in dots. |
11 dot. |
^TB notes and gotchas
-
Interaction
The justification of a
pp. 208, 356^TBblock comes from^FO,^FTor^FN. If none is determined, the default is auto justification. The^FWentry likewise gives auto as the default justification for^TBand left for all other commands. -
Firmware
The command is available only on printers with firmware V60.14.x, V50.14.x or later.
Firmware: V60.14.x, V50.14.x or later p. 356 -
Note
Words wrap on their own inside the block, and text that would run past the block height is cut off. Complex text layout is supported.
p. 356 -
Note
A note in the guide names
pp. 188, 356^TBas the better choice than^FBfor text fields and blocks, and the^FBentry says^FBcannot handle complex text. -
Note
Data between < and > is processed as an escape sequence. The guide's example is that a doubled opening angle bracket followed by a closing one (<<>) prints a single <.
p. 356 -
Note
Soft hyphens do not print and are not used as a line break position.
p. 356 -
Guide issue
The
pp. 200, 356^TBentry says justification comes from^FO,^FTor^FN, but the^FNentry lists no justification parameter. The guide does not explain how^FNsupplies it.
^TB example
^XA ^FO40,40^A0N,28,28^TBN,400,90^FDThis text wraps inside a block 400 dots wide and 90 dots high.^FS ^XZ
A text block 400 dots wide and 90 dots high, normal rotation, set after an ^A that gives font 0 at 28 dots. Words wrap inside the block and any text beyond 90 dots of height is truncated. The example needs firmware that supports ^TB (V60.14.x, V50.14.x or later).
Guides that use ^TB
BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 60, 186, 188, 190, 200, 201, 204, 205, 208, 356.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.