-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text wrap #13
Comments
@mic7010 If the text data is more than the label width, it will automatically be printed on the next line. |
The model is the sm-l300. I did a test with a long description which was not wrapped. Can you provide a code snippet? Also, can I set a max lines to print? |
I have printed a 50 character text as shown below and confirmed that it wraps at the 49th character as shown in the picture.
|
Although not in terms of the number of characters, you can also specify the print area in millimeters by settingPrintableArea method. The following is an example of setting the width to 48mm.
|
Setting the width is not at all an answer to this question. It does not help in any way to avoid breaking words. If there is no way to avoid word breaking, please confirm by letting us know there is no way to avoid it. If there's a way, please advise. |
@kickbk Star printers always break mid character if you exceed the maximum characters per line; they do not word wrap. All of our printers have two fonts, Font A and Font B. Knowing how many characters per line your printer supports will help you avoid word breaks and any unintentional wrapping. I'm going to lock this conversation since this issue has been closed for some time. |
How do I control printing descriptions that exceed the label width? Do you support wrapping or other methods?
The text was updated successfully, but these errors were encountered: