^CF Change the Alphanumeric Default Font
Sets the default font, character height and character width for alphanumeric fields, so that ^A need not be repeated in every field.
^CFf,h,w
^CF parameters
| Parameter | Meaning | Accepted values | Default |
|---|---|---|---|
fspecified default fontp. 154 |
The font used for every alphanumeric field that does not name its own. The guide says that if the default font is not changed, no alphanumeric field command is used, or an invalid font value is entered, the data prints in font A. |
A through Z and 0 to 9. |
AThe guide gives A as the initial value at power up. |
hindividual character height (in dots)p. 154 |
The default character height for alphanumeric fields. Defining only the height or only the width forces the magnification to be proportional to the value given. |
|
9The guide gives 9 as the initial value at power up. |
windividual character width (in dots)p. 154 |
The default character width for alphanumeric fields. Defining only the height or only the width forces the magnification to be proportional to the value given. If neither height nor width is given, the last^CF values, or the ^CF defaults, are used.
|
|
The guide gives 5 as the initial value at power up, or the last permanently saved value. |
^CF notes and gotchas
-
Interaction
A field that has its own
pp. 60, 154^Auses those values instead. The^Aentry says the^CFfont is used for any^FDthat is not preceded by an^A. -
Interaction
Any font in the printer, including downloaded fonts, EPROM fonts and fonts A to Z and 0 to 9, can also be selected with
p. 154^CW. -
Note
The guide describes
pp. 154, 1766, 1767^CFas a way to simplify programs: font information is listed once and the repeated font entries are left out of the fields. Its shortcut examples do this with^CFfollowed by plain fields. -
Guide issue
pp. 60, 61, 154^CFaccepts 0 to 32000 for h and w, while^Alists 10 to 32000 for scalable fonts and says 0 lets the font matrix decide. The^CFentry does not say how values below 10 are treated.
^CF example
^XA ^CF0,40,40 ^FO40,40^FDDefault font^FS ^FO40,100^A0N,25,25^FDOverride^FS ^XZ
^CF sets font 0 at 40 by 40 dots as the default. The first field has no ^A, so it uses that default. The second field has its own ^A, which applies to that field only.
Guides that use ^CF
BarcoderX is a .NET SDK for thermal labels and barcodes. See how it prints and exports labels.
Source Zebra, ZPL II, ZBI 2, Set-Get-Do, Mirror, WML Programming Guide, P1134473-11EN Rev A, 2026/07/05, pages 60, 61, 154, 190, 201, 204, 1766, 1767.
Written by BarcoderX in its own words. Checked against the guide on 2026-11-14.
ZPL and ZPL II are trademarks of Zebra Technologies Corporation. This reference is written by BarcoderX in its own words from Zebra's published programming guide. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.