Plain English

Assigns a single-letter alias to a font already stored on the printer so subsequent `^A` commands can select it. The font file must be uploaded **first** (via `~DY`, `~DG`, `~DU`, USB import, or factory pre-load) — `^CW` only maps an existing file to a letter, it does not transfer the font.

When to use

After uploading a TrueType / OpenType / bitmap font onto the printer's storage. Place `^CW` near the top of the label so the alias is in scope for all subsequent `^A<letter>` references.

Syntax

^CWletter,d:name.TTF

Parameters

ParameterDescription
letterSingle character (A-Z, 0-9) used as the alias in `^A<letter>`
dStorage device: `R:` (RAM, lost on power-off), `E:` (flash, persistent), `B:` (optional onboard memory). Match where the font was uploaded.
name.TTFFilename on that storage device. Extension is `.TTF`, `.OTF`, `.FNT`, etc.

Example

^XA
^CWM,E:ARIAL.TTF
^FO50,50^AMN,40,40^FDArial text^FS
^XZ

Maps letter `M` to `E:ARIAL.TTF`. Requires `ARIAL.TTF` to already exist in flash storage — `^CW` alone does not upload the font.

Try it in the playground View all ZPL commands