^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

Description

^GB draws boxes and rules: width, height, line thickness, colour and corner rounding. (There is no ^GA in ZPL — the box family is ^GB, ^GC, ^GD, ^GE and ^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: Andrei Olegovich

Related articles
RFID
ZPL
ZPL course: 50 lessons
ZPL FAQ
RFID tools

Search this site

Channel @aofeed Chat @aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: