I am new to the ZPL language and have been working on a label for a customer but have a couple of basic questions.
1) I need to set up a fixed size text block and in there there text will change and can be quite long so I need to have line breaks I presume. Are there any samples of this?
2) One of the spaces on our label is for the customer name. However, what if a name is really long, can I reduce the font to fit the name on the fly?
Thanks
ZPL questions// Expert user has replied. |
1 Replies
1) For text block, use ^TB command, which has auto word-wrap up to the height of the text block.
2) Certainly we can let the application to dynamically set the font based on the length of the string of the name. This would require modify the ZPL command on the fly. For readability and consistency, however, we may prefer to use the entire label width for the space for the name, without the need to change the font. If the entire width is still not enough, we may use the first name initial or the last name initial as options.