^GBGraphic Box
^GB configures graphic Box. It applies to the current field and can change pixels in the rendered label.
A representative output
This compact example is selected because the visible result clearly demonstrates ^GB.
Recommended rendered sample
Uses ^GB in a compact label where its visible effect is easy to inspect.
^XA
^PW460
^LL180
^FO35,30^GB390,120,8,B,20^FS
^XZwBox width (in dots)
Sets box width (in dots). It can be omitted when the documented default is suitable.
- Default
value used for thickness (t) or 1- Required
- No
0w variations
Compare values side by side; other parameters remain at representative defaults.
w = 160
Uses 160 for box width (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB160,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZw = 280
Uses 280 for box width (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB280,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZw = 420
Uses 420 for box width (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB420,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZhBox height (in dots)
Sets box height (in dots). It can be omitted when the documented default is suitable.
- Default
value used for thickness (t) or 1- Required
- No
0h variations
Compare values side by side; other parameters remain at representative defaults.
h = 70
Uses 70 for box height (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,70,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZh = 120
Uses 120 for box height (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZh = 190
Uses 190 for box height (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,190,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZtBorder thickness (in dots)
Sets border thickness (in dots). It can be omitted when the documented default is suitable.
- Default
1- Range
1–32000- Required
- No
132000t variations
Compare values side by side; other parameters remain at representative defaults.
t = 2
Uses 2 for border thickness (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,2,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZt = 6
Uses 6 for border thickness (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZt = 12
Uses 12 for border thickness (in dots) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,12,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZcLine color
Sets line color. It can be omitted when the documented default is suitable.
- Default
B- Required
- No
BWc variations
Compare values side by side; other parameters remain at representative defaults.
c = B
Uses B for line color while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZc = W
Uses W for line color while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,W,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZrDegree of corner-rounding
Sets degree of corner-rounding. It can be omitted when the documented default is suitable.
- Default
0- Range
0–8- Required
- No
08r variations
Compare values side by side; other parameters remain at representative defaults.
r = 0
Uses 0 for degree of corner-rounding while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,0^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZr = 4
Uses 4 for degree of corner-rounding while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,4^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZr = 8
Uses 8 for degree of corner-rounding while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,8^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZPrimary source
Official Zebra reference
Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.