-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add Avery L6026 labels and variable bigger font #35
base: main
Are you sure you want to change the base?
Conversation
|
||
c.setFont("Helvetica", size * mm) | ||
text_object = c.beginText() | ||
text_object.setTextOrigin(y, (y - 2 * mm) / 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we need to consider the new size here also
@@ -25,7 +25,7 @@ positional arguments: | |||
|
|||
options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be also updated with the new arguments
label.close() | ||
print(f"Labels written to {args.output_file}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not too happy about the additional printfs. Maybe we should separate this from this MR, and use proper logging/log levels?
Thanks for the PR! |
The small labels are difficult to read for people with impaired eyesight, therefore I added and test-printed labels for Avery L6026REV. Because those labels are bigger I added two more command inputs for scaling the font size and for having a line break after ASN. In general this makes it easier to read bigger labels.