zpl.tools
Label geometry

^LR - Label Reverse Print

Reverses every field on the label, as though each carried `^FR`.

^LR turns on reverse print for the fields that follow, exactly as an ^FR on each of them does. It suits a whole block of a label in white-on-black. Reverse print is an XOR against what is already on the label, not a color. Ink over blank stock still comes out black, so ^LRY alone has no visible effect. It needs something dark underneath, which means a filled ^GB drawn first.

Syntax

^LRa

Support

Supportedparsed: full · state: full · rendered: full

Every documented parameter renders the same output Labelary produces.

Labelary renders this command.

Parameters

aReverse print all fieldsoptional · Y or N

Whether the fields that follow reverse. Stays in force until the next ^LRN or a new format resets it.

Default
N
Invalid value
discarded, and the default applies. The parser reads anything other than Y as N.
Test coverage
Values exercised: Y, N. The invalid-value rule is not pinned by a test.
Y
Reverse every field
N
Print normally (default)

Behavior

Each field XORs itself against the pixels beneath it. On blank stock the field stays unchanged — black on white — so a bare ^LRY^FD… renders identically to the same label without it. Over a solid block the same field comes out white. The order of the format therefore decides the effect: the block must draw before the field that punches through it.

The command reaches only the fields after it. The guide states both claims on one page. It says "identical to placing an ^FR command in all current and subsequent fields", and two paragraphs later "only fields following this command are affected". The second one describes the renderer.

The setting persists until ^LRN, so a format that turns it on must turn it off again before anything that prints normally. It does not carry into the next label.

For a single field, prefer ^FR. It is narrower in scope and needs no reset. Use ^LR where several consecutive fields share a dark background.

^GB with color W is a different mechanism and often the better one: it draws white over what is already there unconditionally, and does not invert it.

Known issues

Tested behavior

Example

The filled ^GB comes first, so the text that follows inverts against it and prints white. Remove the ^GB and the same ^LRY label prints ordinary black text:

^XA
^LRY
^FO40,40^GB320,90,90^FS
^FO60,55^A0N,60,60^FDSALE^FS
^XZ

Open in viewer