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

M Meghana Vaghamshi 2 years 11 months ago
1688 1 0

Hello,

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.

Please register or login to post a reply

1 Replies

D Dmitry Prokhorov

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

CONTACT
Can’t find what you’re looking for?