^GB — Graphic Box: lines and frames

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^GB — Graphic Box: lines and frames

Goal

Draw lines and frames with ^GB.

Description

^GB draws boxes and rules: width, height, line thickness, colour and corner rounding. (There is no ^GA in ZPL — boxes are ^GB; raw images are ^GF.)

Example

^XA
^FO20,20^GB400,150,3^FS
^FO40,60^A0N,28,28^FDBoxed text^FS
^XZ

Rendered ^GB label

Result

A captioned frame: a 400×150 box with 3-dot rules.

Article author: Arthur Isaev