How to set a font size and width based on font size we assign in pt ?


I want to covert font size in to height and width format.

i have a requirement where i will provide UI and we can set font size (in pt) and then i will Prepare a zebra command based on UI parameters.

i am using this line for setting fonts in zpl command : ^A2N,14,8

So for example i will select 12 pt then what could be the height and width in ^A2N command line ?

Please answer here if anybody have any idea.

Dmitry Prokhorov
Hello Meghana,The 1pt size is

Hello Meghana,

The 1pt size is approximately equal to 0.352778 mm. On the other side 1mm size is equal to 2.83465pt. You can find DPI resolution value for your printer and convert it to dots per mm value. This way you may have an idea on how to convert needed pt size to size in dots for ^A ZPL command.

Dmitry Prokhorov

Software Engineer, Kutir Mobility

Posted on behalf of Zebra Technologies

Vote up!
Vote down!

Points: 0

You voted ‘up’

Log in to post comments