
Learning ZPL
Basic ZPL Exercises and Examples
82
P1026208-001 Rev. B Software Integrator Guide 10/29/2010
Exercise 17 • This exercise shows how to change the default font to simplify formats.
The printer’s default font is printer resident Font A (smallest resident bitmap font). The
^CF (Change Alphanumeric Default Font) command can change the default font and/or
set the size of the default font.
1. Send this format to the printer:
The first format uses the resident
Font A to print the ^FD (Field Data). The second
format has the default font changed with the
^CF command to use the 0 Font (zero) and
a change in font size (approximately 10 point font with a proportional scaling).
Note: The first format does not have the
^CN or ^PN that cut and present a receipt after a
print.
ZPL II CODE
GENERATED LABEL
^XA
^FT050,050^FDZEBRA^FS
^FT050,150^FDZEBRA^FS
^FT050,250^FDZEBRA^FS
^XZ
^XA
^CF0,27,27
^FT050,050^FDZEBRA^FS
^FT050,150^FDZEBRA^FS
^FT050,250^FDZEBRA^FS
^CN1
^PN0
^XZ
1st Receipt out
Default
font size
No cut
between
receipts
Kommentare zu diesen Handbüchern