Skip to command documentation
Partialtextrasterfield scope
^TB

Text Blocks

^TB configures text Blocks. It applies to the current field and can change pixels in the rendered label.

ZPLr compatibility note

  • Rotation, bounds, wrapping, truncation, and literal << escapes are modeled; other firmware complex-layout escape instructions are skipped.
Syntax
^TBa,b,c
a

Block rotation

Sets block rotation. It can be omitted when the documented default is suitable.

Default
whatever was specified by the last ^A (which has the default of ^FW )
Required
No
Documented valuesNRIB

a variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

a = N

Uses N for block rotation while the other command values stay at representative defaults.

ZPLcaret-tb-a-1.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,360,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

a = R

Uses R for block rotation while the other command values stay at representative defaults.

ZPLcaret-tb-a-2.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBR,360,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

a = I

Uses I for block rotation while the other command values stay at representative defaults.

ZPLcaret-tb-a-3.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBI,360,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
b

Block width in dots

Sets block width in dots. It can be omitted when the documented default is suitable.

Default
1 dot
Required
No
Documented values1

b variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

b = 220

Uses 220 for block width in dots while the other command values stay at representative defaults.

ZPLcaret-tb-b-1.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,220,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

b = 360

Uses 360 for block width in dots while the other command values stay at representative defaults.

ZPLcaret-tb-b-2.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,360,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

b = 480

Uses 480 for block width in dots while the other command values stay at representative defaults.

ZPLcaret-tb-b-3.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,480,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
c

Block height in dots

Sets block height in dots. It can be omitted when the documented default is suitable.

Default
1 dot
Required
No
Documented values1

c variations

Compare values side by side; other parameters remain at representative defaults.

Side-by-side comparison3 variations

c = 80

Uses 80 for block height in dots while the other command values stay at representative defaults.

ZPLcaret-tb-c-1.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,360,80
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

c = 130

Uses 130 for block height in dots while the other command values stay at representative defaults.

ZPLcaret-tb-c-2.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,360,130
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

c = 200

Uses 200 for block height in dots while the other command values stay at representative defaults.

ZPLcaret-tb-c-3.zpl
^XA
^PW640
^LL360
^FO70,70^A0N,34,28
^TBN,360,200
^FDText blocks keep copy inside a defined area.^FS
^FO28,318^A0N,22,22^FDCaret TB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

Primary source

Official Zebra reference

Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.

Open Zebra documentation

ZPLr Command Reference

Independent documentation for the pinned ZPL II 2025 renderer profile. Examples run locally in your browser.

ZPL, ZPL II, Zebra, and Zebra Programming Language are trademarks or registered trademarks of Zebra Technologies Corp. ZPLr is independent and is not affiliated with or endorsed by Zebra Technologies Corp.