
79
Learning ZPL
Basic ZPL Exercises and Examples
10/29/2010 Software Integrator Guide P1026208-001 Rev. B
Exercise 14 • This exercise shows you the how to simplify calling imported fonts.
You will need two imported font installed in the kiosk printer for this exercise. Refer to
Exercise 11 • on page 77 to install fonts as necessary. This exercise will use the Verdana
font and the Zebra Swiss 721 font (pre-installed in the factory and it is a listed item to
download from the Zebra Web site for development purposes).
1. Send this format to the printer:
Once the a font is called with the
^A@ command, the ^A@ command can be used just like
the
^A command. If you have been using a ^A0 (resident scalable font 0 - zero) and a font
change is needed, a simple search for the
^A0 string can be replaced with ^A@. The first
instance of
^A@ must be modified to include the font file location parameters. This method
can be modified to search for a particular font size as well.
1
^XA (Start Format) command
2
^FT and ^A@ (Use Font Name to Call Font) commands with full font
location
3
^A@ with last font location parameters used
4
Reduce the font size with the
^A@ parameters
5
^A@ - New Font Called
6
^A@ with last font location parameters used
7
^CN (Cut Now) command
8
^PN (Present Now)
9
^XZ (End Format) command
^XA
^FT050,050^A@N,36,20,E:TT0003M_.TTE^FDZEBRA-1^FS
^FT050,150^A@N,36,20^FDZEBRA-2^FS
^FT050,250^A@N,20,20^FDZEBRA-3^FS
^FT050,350^A@N,40,40,E:VERDANA.TTE^FDZEBRA-4^FS
^FT050,450^A@N,40,40^FDZEBRA-5^FS
^CN1
^PN0
^XZ
Kommentare zu diesen Handbüchern