Skip to command documentation
Supportedgraphicrasterfield scope
^GB

Graphic Box

^GB configures graphic Box. It applies to the current field and can change pixels in the rendered label.

Syntax
^GBw,h,t,c,r
w

Box 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
Documented values0

w variations

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

Side-by-side comparison3 variations

w = 160

Uses 160 for box width (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-w-1.zpl
^XA
^PW640
^LL360
^FO90,55
^GB160,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

w = 280

Uses 280 for box width (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-w-2.zpl
^XA
^PW640
^LL360
^FO90,55
^GB280,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

w = 420

Uses 420 for box width (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-w-3.zpl
^XA
^PW640
^LL360
^FO90,55
^GB420,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
h

Box 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
Documented values0

h variations

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

Side-by-side comparison3 variations

h = 70

Uses 70 for box height (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-h-1.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,70,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

h = 120

Uses 120 for box height (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-h-2.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

h = 190

Uses 190 for box height (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-h-3.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,190,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
t

Border 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
Documented values132000

t variations

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

Side-by-side comparison3 variations

t = 2

Uses 2 for border thickness (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-t-1.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,2,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

t = 6

Uses 6 for border thickness (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-t-2.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

t = 12

Uses 12 for border thickness (in dots) while the other command values stay at representative defaults.

ZPLcaret-gb-t-3.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,12,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
c

Line color

Sets line color. It can be omitted when the documented default is suitable.

Default
B
Required
No
Documented valuesBW

c variations

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

Side-by-side comparison2 variations

c = B

Uses B for line color while the other command values stay at representative defaults.

ZPLcaret-gb-c-1.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

c = W

Uses W for line color while the other command values stay at representative defaults.

ZPLcaret-gb-c-2.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,W,16^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser
r

Degree 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
Documented values08

r variations

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

Side-by-side comparison3 variations

r = 0

Uses 0 for degree of corner-rounding while the other command values stay at representative defaults.

ZPLcaret-gb-r-1.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,0^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

r = 4

Uses 4 for degree of corner-rounding while the other command values stay at representative defaults.

ZPLcaret-gb-r-2.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,4^FS
^FO28,318^A0N,22,22^FDCaret GB parameter example^FS
^XZ
Renderer8 dpmm
Preview loads in your browser

r = 8

Uses 8 for degree of corner-rounding while the other command values stay at representative defaults.

ZPLcaret-gb-r-3.zpl
^XA
^PW640
^LL360
^FO90,55
^GB360,120,6,B,8^FS
^FO28,318^A0N,22,22^FDCaret GB 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