1 Reply Latest reply on Feb 28, 2018 8:01 AM by Robin West

    How to increase the font

    Ramsin Savra

      Hello Group,

       

      In portion of my code (Basic), I print a bar-code along with its human readable number as the following:

       

         print (chanW1)"^XA"

         print (chanW1)"^MMT"

         print (chanW1)"^PW830"

         print (chanW1)"^LL0406"

         print (chanW1)"^LS0"

         //   some code go here to center the bar-code and its interpretation (human readable value)

        print (chanW1)"^BY"+str(j)+",2,156^FT"+str(i)+",119^BCI,,Y,N"

        print (chanW1)"^FD"+part_number$+"^FS"

        print (chanW1)"^PQ1,0,1,Y^XZ"

       

      Now, I'm facing two issues:

       

      1- How can I have the number under the bar-code to be displayed with a larger font on top?

      2- Currently, I'm using a logic to check the length of part-number and the width of the paper to center the bar-code but does the API has any function to do it?

       

      PN.jpg

       

       

      I will appreciate your response.

       

      Thanks.

      Ray

        • Re: How to increase the font
          Robin West

          Hi Ramsin,

          You will have to modify the ZPL to get the output you want.

          To get the human readable text on top, it's a simple parameter adjustment: ^BCI,,N,Y  This will not adjust the font size though.

          To adjust the font size, you will have to add the text separately with a ^A command.

          Currently there is no easy way within ZPL to center a barcode.  Your method is the best option.

           

          print (chanW1)"^XA"

            print (chanW1)"^MMT"

            print (chanW1)"^PW830"

            print (chanW1)"^LL0406"

            print (chanW1)"^LS0"

            //  some code go here to center the bar-code and its interpretation (human readable value)

            print (chanW1)"^BY"+str(j)+",2,156^FT"+str(i)+",119^BCI,,N,N"

            print (chanW1)"^FD"+part_number$+"^FS"

            print (chanW1)"^FT"+str(i)+",10^A0N,30,30^FD"+part_number$+"^FS"

            print (chanW1)"^PQ1,0,1,Y^XZ"

           

          ZPL Manual