zebra - ZPL: how to set max width of a "text field" -


given list of small strings (1 3 words each), print them in 2 columns using zpl zebra printers. example, if list ["a", "b", "c", "d", "e"], label this:

      b c      d e 

however, if strings little bit longer, able truncate them columns don't overlap. example, if list ["string 1", "string 2", "long string 3", "string 4", "string 5"], label should this:

 string 1  string 2 long str  string 4 string 5 

i see 2 possible approaches this: 1) using zpl command have not been able find yet 2) calculating width of strings in pixels. in case need know font used zpl.

i'm using command text printing:

^a0,n,30,30 ^fdtext^fs 

it looks ^tb solution:

 ^a0n,30,30 ^tbn,250,29 ^fdtext should go here^fs 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -