Skip to command documentation
Partialtextrasterfield scope
^SF

Serialization Field (with a Standard ^FD String)

^SF configures serialization Field (with a Standard ^FD String). It applies to the current field and can change pixels in the rendered label.

ZPLr compatibility note

  • Serialization runs after field decoding and ignores control/bidi markers. Combining clusters use native Intl.Segmenter when available, otherwise code points; the runtime's Unicode version is not pinned to printer firmware.
Syntax
^SFa,b
a

Mask string

Sets mask string. It can be omitted when the documented default is suitable.

Required
No
Documented valuestext

a variations

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

Side-by-side comparison2 variations

a = text

Uses text for mask string while the other command values stay at representative defaults.

ZPLcaret-sf-a-1.zpl
^XA
^PW640
^LL360
^FO48,75
^SFtext,text
^FDThe quick brown fox wraps across the label.^FS
^FO28,318^A0N,22,22^FDCaret SF parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

a = text2

Uses text2 for mask string while the other command values stay at representative defaults.

ZPLcaret-sf-a-2.zpl
^XA
^PW640
^LL360
^FO48,75
^SFtext2,text
^FDThe quick brown fox wraps across the label.^FS
^FO28,318^A0N,22,22^FDCaret SF parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
b

Increment string

Sets increment string. It can be omitted when the documented default is suitable.

Required
No
Documented valuestext

b variations

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

Side-by-side comparison2 variations

b = text

Uses text for increment string while the other command values stay at representative defaults.

ZPLcaret-sf-b-1.zpl
^XA
^PW640
^LL360
^FO48,75
^SFtext,text
^FDThe quick brown fox wraps across the label.^FS
^FO28,318^A0N,22,22^FDCaret SF parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

b = text2

Uses text2 for increment string while the other command values stay at representative defaults.

ZPLcaret-sf-b-2.zpl
^XA
^PW640
^LL360
^FO48,75
^SFtext,text2
^FDThe quick brown fox wraps across the label.^FS
^FO28,318^A0N,22,22^FDCaret SF 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.