How do you use ZPL to change the font size to 9pt?
Asked
Active
Viewed 3.6k times
2 Answers
9
Onboard fonts are measured in dots, so you have to take into account the DPI of the printer you are targeting, typically 203 DPI, 300 DPI, or 600 DPI.
The ZPL Manual explains this and gives examples. See the third and fourth parameters of the ^A command.
Zebra also offers you a free WYSIWYG design tool called ZebraDesigner Free. You can create a label design and export the ZPL code. This is a great way to save some time and learn ZPL in the process.

Elton Saunders
- 1,238
- 1
- 12
- 23
-
Can zebraDesigner Export labels as ZPL ? I was not able to find this function – prasad Dec 29 '17 at 23:06
-
3@prasad , try printing to file. The prn file will be a text file, and will be ZPL if a ZPL driver has been selected. – Elton Saunders Jan 02 '18 at 15:04
-
@prasad I used the Labelary WebService to create my labels as PDF and then print them out. http://labelary.com/service.html – Fabienne Williams May 10 '18 at 12:30
9
^CFA,(font size here)
E.g, ^CFA,20
This changes the font for the text that comes after this code so it would look something like this
^CFA,20
^FO50,340^FD100 Disney Rules^FS
Hope this helps :)

GalloCedrone
- 4,869
- 3
- 25
- 41

Roshan Isaac
- 91
- 1
- 1
-
2This will set the font size to 20 dots, not 20 pt. To convert points to dots, use dots=(points/72)*printerDPI. Since the font A is not a scalable font, it can only use integer multiples of its size listed in the manual. – AMG May 18 '20 at 12:44