ZPL - How to set Font size to 9pt?
Asked Answered
N

2

6

How do you use ZPL to change the font size to 9pt?

Ninon answered 1/12, 2016 at 14:54 Comment(0)
B
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.

Brassbound answered 2/12, 2016 at 12:25 Comment(3)
Can zebraDesigner Export labels as ZPL ? I was not able to find this functionMonomial
@Monomial , try printing to file. The prn file will be a text file, and will be ZPL if a ZPL driver has been selected.Brassbound
@Monomial I used the Labelary WebService to create my labels as PDF and then print them out. labelary.com/service.htmlNinon
B
10
^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 :)

Beitz answered 31/1, 2018 at 16:41 Comment(1)
This 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.Agogue
B
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.

Brassbound answered 2/12, 2016 at 12:25 Comment(3)
Can zebraDesigner Export labels as ZPL ? I was not able to find this functionMonomial
@Monomial , try printing to file. The prn file will be a text file, and will be ZPL if a ZPL driver has been selected.Brassbound
@Monomial I used the Labelary WebService to create my labels as PDF and then print them out. labelary.com/service.htmlNinon

© 2022 - 2024 — McMap. All rights reserved.