^GDGraphic Diagonal Line
^GD configures graphic Diagonal Line. 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 ^GD.
Recommended rendered sample
Uses ^GD in a compact label where its visible effect is easy to inspect.
^XA
^PW460
^LL180
^FO70,25^GD320,130,8,R,B^FS
^XZwBox width (in dots)
Sets box width (in dots). It can be omitted when the documented default is suitable.
- Default
value of t (thickness) or 3- Range
3–32000- Required
- No
332000w 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
^GD160,140,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD280,140,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD420,140,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD parameter example^FS
^XZhBox height (in dots)
Sets box height (in dots). It can be omitted when the documented default is suitable.
- Default
value of t (thickness) or 3- Range
3–32000- Required
- No
332000h 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
^GD340,70,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD340,120,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD340,190,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD340,140,2,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD340,140,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD340,140,12,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD 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
^GD340,140,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD parameter example^FS
^XZc = W
Uses W for line color while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GD340,140,6,W,R^FS
^FO28,318^A0N,22,22^FDCaret GD parameter example^FS
^XZoOrientation (direction of the diagonal)
Sets orientation (direction of the diagonal). It can be omitted when the documented default is suitable.
- Default
R- Required
- No
Ro variations
Compare values side by side; other parameters remain at representative defaults.
o = R
Uses R for orientation (direction of the diagonal) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GD340,140,6,B,R^FS
^FO28,318^A0N,22,22^FDCaret GD parameter example^FS
^XZo = X
Uses X for orientation (direction of the diagonal) while the other command values stay at representative defaults.
^XA
^PW640
^LL360
^FO90,55
^GD340,140,6,B,X^FS
^FO28,318^A0N,22,22^FDCaret GD parameter example^FS
^XZPrimary source
Official Zebra reference
Use the manufacturer reference for printer- and firmware-specific behavior beyond ZPLr’s pinned rendering profile.