Open toxicantidote opened 2 years ago
Looked at the code. I see quiet_zone
appears to be accounted for after all.
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 barcode.version
returns '0.14.0'
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.