0

I create a text in ZPL format using zebra font 0, which is a scalable font. I need to calculate the text width and height, however I didn't know the relation between ZPL font parameter and letter size in dots. The ZPL command used to create text are :

^FO15,19^A0,20,20^FDSample_text^FS

The parameter 20,20 supposed to be font height (h) and width(w) in dots on the manual, however when I use font type 0 and test it, the height and width (20,20) not equal to the size of letter in dots.

What is the unit of height and width font parameter for scalable font? Is there a formula to calculate text height and width in dots for all font size input?

3
  • The resolution of your printer is important to consider as Zebra printers can be 203, 300 or 600 DPI (dot per inch). Given the resolution of your printer, does the printed size better match what you are expecting? Commented Jul 6, 2022 at 17:01
  • My printer is 203 dpi (8dot/mm). What I'm confused about is when I input font height and width to 20, the height and width is not 20 dots. I check using online zpl viewer url: labelary.com/… Compared to ZPL box, the length is not 20 dots. The scale value varies a lot when I try different font sizes. I still didn't find the relation between font input and actual letter size. Thanks Commented Jul 8, 2022 at 3:14
  • Perhaps this article might be helpful. How to calculate the font width, ZPL Commented Aug 25, 2023 at 3:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.