Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

felsenuboot
Copy link

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.


c.setFont("Helvetica", size * mm)
text_object = c.beginText()
text_object.setTextOrigin(y, (y - 2 * mm) / 2)
Copy link
Collaborator

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:
Copy link
Collaborator

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}")
Copy link
Collaborator

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?

@margau
Copy link
Collaborator

margau commented Jan 26, 2025

Thanks for the PR!
Added a few minor remarks, from my perspective we can merge the newline/font size feature, as well as the additional labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants