Skip to content

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.render(render, count)
label.render(render, count, args.line_break, args.size)
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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will try to do that. I am quite new to the world of programming and especially github so forgive my hesitance. Still learning

@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