Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ZPL 中有没有办法让文本垂直居中?
我知道我可以使用^FO0,0^ASN,50^FB200,3,0,C,0^FD TEXT ^FS. 但是,如果它足够短,我怎样才能在第二行打印呢?
^FO0,0^ASN,50^FB200,3,0,C,0^FD TEXT ^FS
没有垂直居中功能,但如果您事先知道您的绳子足够短以适合中间线,您可以伪造它。
您的 ^FB 定义了一个三行的字段块。因此,您最好的选择是确定您的字符串是否适合一行......如果适合,请在您的字符串之前插入一个“\&”。
^FO0,0^ASN,50^FB200,3,0,C,0^FD\&TEXT^FS