^TB Text Blocks

Fonts and text blocks ZPL caret command

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.

Format ^TBa,b,c

^TB parameters

Parameters of ^TB
ParameterMeaningAccepted valuesDefault
ablock rotationp. 356

How the block is rotated.

  • Nnormal
  • Rrotated 90 degrees clockwise
  • Iinverted 180 degrees
  • Bread from the bottom up, 270 degrees

Whatever was specified by the last ^A, which in turn defaults to ^FW.

bblock width in dotsp. 356

The width of the block.

1 up to the width of the label, in dots.

1

1 dot.

cblock height in dotsp. 356

The height of the block.

1 up to the length of the label, in dots.

1

1 dot.

^TB notes and gotchas

  • Interaction

    The justification of a ^TB block comes from ^FO, ^FT or ^FN. If none is determined, the default is auto justification. The ^FW entry likewise gives auto as the default justification for ^TB and left for all other commands.

    pp. 208, 356
  • 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 ^TB as the better choice than ^FB for text fields and blocks, and the ^FB entry says ^FB cannot handle complex text.

    pp. 188, 356
  • 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 ^TB entry says justification comes from ^FO, ^FT or ^FN, but the ^FN entry lists no justification parameter. The guide does not explain how ^FN supplies it.

    pp. 200, 356

^TB example

example.zplZPL
^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.