Search code examples
printingbarcodezpl

How to change the font size of bar code via ZPL?


Is it possible to change the text of bar code on ZPL?

e.g. http://labelary.com/viewer.html?density=24&width=25.5&height=12&units=mm&index=0&zpl=%5EXA%0A%0A%5EBY3%2C5%2C200%0A%5EFO55%2C30%0A%5EBC%0A%5EFD1234567890ABCDEF%0A%5EFS%0A%0A%5EXZ

^XA

^BY3,5,200
^FO55,30
^BC
^FD1234567890ABCDEF
^FS

^XZ


Solution

  • There is no way to change the text interpretation within a bar-code in ZPL, but you can hide it and put in something of your own.

    
    ^XA
    ^BY3,5,200
    ^FO55,30
    ^BC,,N
    ^FD1234567890ABCDEF
    ^FS
    ^FO55,250
    ^A0N,20,20
    ^FD1234567890
    ^FS
    ^XZ