Field Commands
^FB - Field Block
Creates a text block with automatic line wrapping
^FB - Field Block
Overview
The ^FB command creates a text field with automatic line wrapping and multiple line support.
Syntax
^FBa,b,c,d,eParameters
- a = Width of text block in dots
- b = Maximum number of lines
- c = Line spacing in dots (vertical distance between lines)
- d = Text justification
- L = Left justify (default)
- C = Center justify
- R = Right justify
- J = Justified (fill line)
- e = Hanging indent in dots (optional)
Description
- Creates a formatted text block with word wrapping
- Text automatically wraps when reaching block width
- Useful for longer text passages
- Supports multiple alignment options
Usage Notes
- Must precede ^FD command
- Width determines when text wraps to next line
- Line spacing determines vertical distance between wrapped lines
- Indent applies to all lines except first
Example
^XA
^FO50,50
^FB400,5,20,L,0
^ADN
^FDThis is a longer text that will automatically wrap to the next line when it reaches the maximum width of the block.^FS
^XZBlock Dimensions
For a 4x6 label at 203 DPI:
- Block width: 0-815 dots
- Typical line spacing: 20-30 dots
- Hanging indent: 0-100 dots
Justification Examples
^FB400,3,20,L,0 # Left justified
^FB400,3,20,C,0 # Center justified
^FB400,3,20,R,0 # Right justified
^FB400,3,20,J,0 # JustifiedRelated Commands
^FO- Field Origin^FD- Field Data^FS- Field Separator^A- Scalable Font