^FB Field Block
Formats an ^FD or ^SN string as a block of text with automatic word wrap, using the origin, font and rotation set for that field.
^FBa,b,c,d,e
^FB parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
awidth of text block line (in dots)p. 186 |
The width available to each line of the block. A value below the font width, or no value at all, means the text is not printed. |
0 up to the width of the label. |
0
|
bmaximum number of lines in the text blockp. 186 |
How many lines the block may hold. Lines beyond this maximum are drawn over the last line of the block. The block resizes by itself when the font size changes. |
|
1
|
cadd or delete space between lines (in dots)p. 186 |
Extra space between lines. A positive value adds space and a negative value removes it. A value counts as positive unless it starts with a minus sign. |
|
0
|
dtext justificationp. 186 |
How the text is aligned inside the block. |
|
L
|
ehanging indent (in dots) of the second and remaining linesp. 186 |
How far the second and later lines are indented. |
|
0
|
^FB notes and gotchas
-
Gotcha
p. 187^CI13must be selected to print a backslash. -
Interaction
With
p. 187^FT, the block uses the baseline origin of the last possible line of text, so a larger font makes the block grow from bottom to top and can push the text past the top margin. With^FO, a larger font makes the block grow from top to bottom. -
Interaction
p. 187^FSends the effect of an^FB, so every text block has to be given its own^FB. -
Interaction
The d parameter justifies the text inside the block. It also interacts with the justification of
pp. 187, 201, 205^FOand^FT, which justifies the origin. The page marks this paragraph with a .14 badge; the justification parameter of^FOand^FTis documented as needing V60.14.x, V50.14.x or later (pages 201 and 205). -
Note
Escape sequences inside the data: \& is a carriage return and line feed; \ followed by one alphanumeric character is a soft hyphen (a word break with a dash); \\ is a backslash.
p. 187 -
Note
A soft hyphen placed near the end of a line prints a hyphen; elsewhere it is ignored. A word too long for one line, with no soft hyphen, gets a hyphen placed automatically at the right edge of the block, with the rest on the next line. The position depends on word length, not on syllables.
p. 187 -
Note
The data string can be at most 3K long, a count that includes control characters, carriage returns and line feeds. Ordinary carriage returns, line feeds and spaces that fall where a line breaks are dropped.
p. 187 -
Note
pp. 188, 356^FBdoes not support complex text; the guide points to^TBfor that, and elsewhere calls^TBthe preferred command for blocks of text. -
Guide issue
On the same page the guide says a soft hyphen near the end of a line prints a hyphen and can be used to control where a word breaks, and also says
p. 187^FBdoes not support soft hyphens as a potential line breakpoint, although soft hyphen characters are always printed as if they were a hyphen. Both statements are recorded.
^FB example
^XA ^CF0,28 ^FO40,40 ^FB400,6,0,L ^FDFirst line\&Second line, which is long enough to wrap onto more lines.^FS ^XZ
A text block 400 dots wide with room for at most 6 lines, no extra line spacing and left justification. The \& sequence in the data forces a line break after the first line; the rest wraps by itself within the block, and the maximum is set to 6 so that the example does not depend on exactly where the lines wrap. The font comes from ^CF.
Guides that use ^FB
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 154, 186 to 188, 190, 201, 204, 205, 356, 1767.
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.