
83
Learning ZPL
Basic ZPL Exercises and Examples
10/29/2010 Software Integrator Guide P1026208-001 Rev. B
Exercise 18 • This exercise shows how to change default font setting within a format.
The default font can be changed multiple times within a format (form). Please note the text
location and the order
1. Send this format to the printer:
The
^CF command sets the G Font to the default font to print text.
The second
^CF command has the default font changed with the ^CF command to use
the 0 Font (zero). By providing the only the width parameter (
^CFf,,w), the font is
proportional and applies the single size parameter to the command as if both the width
and height are provided and of equal value.
ZPL II CODE
GENERATED LABEL
^XA
^CFG,27,27
^FT050,050
^FDZEBRA-1^FS
^FT050,150
^FDZEBRA-2^FS
^CF0,,50
^FT050,250
^FDZebra-3^FS
^FT050,350^A0,27,50
^FDZebra-4^FS
^FT050,450^A0,27,50
^FDZebra-5^FS
^CN1
^PN0
^XZ
Kommentare zu diesen Handbüchern