-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
center_text=False cuts off text at left when justifying barcode text in SVG output #145
Comments
Looked at the code. I see Also in case it's relevant. browser is Chrome. |
Can you try 0.14.0? There were a few fixes related to positioning and sizes in that release. |
I have updated to the 0.14.0 wheel from the releases page and the issue still persists as originally described. Confirmed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Barcode version: 0.13.1-py3
Python version: 3.7.3 (64 bit)
Platform: Windows 10 (20H2)
If the
center_text=False
option is used when writing a code128 (and possibly others) barcode in SVG format, the text under the barcode is justified beyond the left of the SVG. It appears that the justification is based on the center of the the SVG text, rather than its left edge.I am using this in an application that embeds these SVG images within a table in a webpage, and for the same code (97660) they appear as below:
A simplified extract of the code section being used to generate the SVG is below, however it uses the same writer options as my production code. I suspect that changes to the
quiet_zone
option are not being accounted for in text positioning.The text was updated successfully, but these errors were encountered: