Skip to content

Commit

Permalink
Merge branch 'main' into fix/issue-58-human_readable_on_imagewriter
Browse files Browse the repository at this point in the history
  • Loading branch information
WhyNotHugo authored Sep 20, 2024
2 parents fae2f5f + 389dc5f commit 43d4f09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions barcode/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ def _paint_text(self, xpos, ypos):
barcodetext = self.human if self.human != "" else self.text

assert ImageFont is not None

# check option to override self.text with self.human (barcode as
# human readable data, can be used to print own formats)
barcodetext = self.human if self.human != "" else self.text

font_size = int(mm2px(pt2mm(self.font_size), self.dpi))
if font_size <= 0:
return
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py38,py39,py310,py311}{,-images}
envlist = py,py-images
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit 43d4f09

Please sign in to comment.