Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ZPL center variable text

I just modified a label for an Zebra printer. I almost finished it, but I am currently stuck on 1 row, i have read different topics on multiple sites but nothing help me to get what I want. Our label is 10cm height and 15cm width, the row below needs to center automatically from the middle to the side.

^CF0,10^FO45,005^FB900,1,0,C^FH\^FD$$$WAVENAME$$$^FS

I hope someone can help me with this problem.

Regards Martijn,

like image 313
Martijnsp Avatar asked Apr 29 '26 06:04

Martijnsp


1 Answers

You could calculate the text width an set the ^FO parameters accordingly.
Alternativly you can use the ^FB command to center text, like in this answer.

like image 129
Delphi Coder Avatar answered May 01 '26 10:05

Delphi Coder