Roger
Roger

Reputation: 1631

How to set a font size as variable in ZPL

Hi I need to set a variable as the font scale in the ZPL code:

How Can I set this ScaleFont1 to be used in several parts of the label?

#ScaleFont2=64,42,20:58,34,30:56,28,60#
^XA^FWN^XZ
^XA^SZ2^JMA^MCY^PMN^PW822~JSN^JZY^POI^LH15,5^LRN^XZ
^XA^PR8^XZ
^XA^MMT
^FT15,305^A0N,<ScaleFont1>^FD<ReceiverAddressLine1>^FS
^FT15,345^A0N,<ScaleFont1>^FD<ReceiverAddressLine2>^FS
^FT15,385^A0N,<ScaleFont1>^FD<Address1>^FS
^PQ1,0,1,Y
^XZ

Upvotes: 0

Views: 4825

Answers (1)

levi Clouser
levi Clouser

Reputation: 358

Using the ^CF command sets the default Font Sizes to be used for throughout the Label. that should allow you to set it once, I changed the Sample Here

Upvotes: 2

Related Questions