Latest commits for branch fix_sizes https://codeberg.org/WhyNotHugo/python-barcode/branch/fix_sizes ㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python. Sun, 26 Apr 2026 06:06:55 +0200 Make ImageWriter and SVGWriter create similar bar codes without arguments https://codeberg.org/WhyNotHugo/python-barcode/commit/f103c836b6bb12f16b39daca90b4f985b7d89bff Make ImageWriter and SVGWriter create similar bar codes without arguments If the user tries to create the same bar code with both writers, the result should look the same without a need to tweak any parameter. It is impossible to make both have the same *size*, as SVG is a vectorial format, but they should have the same proportions. The BaseWriter should calculate all values in mm. The conversion to px is done entirely in *Writer classes. The SVGWriter class doesn't need to convert to px because all its values are already in mm, so its dpi attribute is not necessary. Remove tweaks from the test_manually.py file. Fernando Governatore f103c836b6bb12f16b39daca90b4f985b7d89bff Wed, 23 Dec 2020 22:39:23 -0300 Make ImageWriter text position closer to SVGWriter text position https://codeberg.org/WhyNotHugo/python-barcode/commit/ec61547975bc308a008826a6e34b33b6927e6bc5 Make ImageWriter text position closer to SVGWriter text position In the SVG, the position is measured from the bottom of the font up, so we should remove the entire height from the ypos not just 1/4 of it. Fernando Governatore ec61547975bc308a008826a6e34b33b6927e6bc5 Wed, 23 Dec 2020 22:39:23 -0300 Make ImageWriter font size closer to SVGWriter font size https://codeberg.org/WhyNotHugo/python-barcode/commit/efb41d390ca7f9b504a8a814b1bf6346b55aebb6 Make ImageWriter font size closer to SVGWriter font size For some reason, that seems to be undocumented in the git history, the ImageWriter font_size was multiplied by 2. The dpi was not taken into account and if we changed the dpi the scale of the text changed in relation to the bar code. The best match seems to be converting the font_size in pt to px. The fractional part of the size is truncated because the library expects an integer but it could round to the nearest integer value if this causes problems. Fernando Governatore efb41d390ca7f9b504a8a814b1bf6346b55aebb6 Wed, 23 Dec 2020 22:39:23 -0300 Merge pull request #94 from yourcelf/master https://codeberg.org/WhyNotHugo/python-barcode/commit/7a15b8ae1327a194634ab385e88f433f738dc8e0 Merge pull request #94 from yourcelf/master Un-package-ify tests Hugo Barrera 7a15b8ae1327a194634ab385e88f433f738dc8e0 Fri, 23 Oct 2020 09:42:04 +0200 Un-package-ify tests https://codeberg.org/WhyNotHugo/python-barcode/commit/7c3872d249cc1eef13ae0bc5ef1c9e9e4d0923f5 Un-package-ify tests Charlie DeTar 7c3872d249cc1eef13ae0bc5ef1c9e9e4d0923f5 Thu, 22 Oct 2020 17:45:00 -0600 Merge pull request #92 from WhyNotHugo/py39 https://codeberg.org/WhyNotHugo/python-barcode/commit/fefb5077c593bf2b0361456f5f817d4b4a1f865f Merge pull request #92 from WhyNotHugo/py39 Support Python 3.9 Hugo Barrera fefb5077c593bf2b0361456f5f817d4b4a1f865f Mon, 19 Oct 2020 21:40:36 +0200 Support Python 3.9 https://codeberg.org/WhyNotHugo/python-barcode/commit/a8af80c4d0130a46cc879ed3a2613aed339c883f Support Python 3.9 Hugo Osvaldo Barrera a8af80c4d0130a46cc879ed3a2613aed339c883f Mon, 19 Oct 2020 20:40:07 +0200 Redo the documentation https://codeberg.org/WhyNotHugo/python-barcode/commit/4dd512971ceff60d5578e7e0fb3fe5c10bab02c5 Redo the documentation - Set up sphinx again from scratch to kill of lots of legacy, bogus code. - Reorganise all docs, and make sure everything is accessible via the index (lots of things were unreadable). - DRY. A lot! Hugo Osvaldo Barrera 4dd512971ceff60d5578e7e0fb3fe5c10bab02c5 Wed, 23 Sep 2020 23:44:01 +0200 Use absolute path to sample image https://codeberg.org/WhyNotHugo/python-barcode/commit/0d71f97f6ff10656be612dd9aac09055e0cf7ed7 Use absolute path to sample image So that it renders as expected on PyPI. Point to a tag so we're sure that exists, but we can update it later if we want to. Hugo Osvaldo Barrera 0d71f97f6ff10656be612dd9aac09055e0cf7ed7 Wed, 23 Sep 2020 22:53:47 +0200 Merge pull request #90 from timgates42/bugfix_typo_completely https://codeberg.org/WhyNotHugo/python-barcode/commit/4d1984e4e6f9f46b3f432a9a100c71a23b670193 Merge pull request #90 from timgates42/bugfix_typo_completely docs: Fix simple typo, complety -> completely completely]]> Hugo Barrera 4d1984e4e6f9f46b3f432a9a100c71a23b670193 Sun, 13 Sep 2020 10:39:55 +0200