WhyNotHugo / python-barcode

㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.
http://python-barcode.rtfd.io/
MIT License
572 stars 123 forks source link

Fix size and text distance #212

Open fra87 opened 1 year ago

fra87 commented 1 year ago

I spotted two problems while writing a program:

1) text_distance is not applied if guardbar is on 2) the height calculation is not correct (it only accounts for half of the font width), and this caused the images being too short

I fixed the two issues in this PR