how to set text position? #44
Labels
No labels
api-inconsistency
automerge
bug
contributions welcome
documentation
duplicate
enhancement
good first issue
invalid
more-information-needed
question
sync
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
WhyNotHugo/python-barcode#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
You can configure several parameters, including changing the distance between the text and the barcode (.text_distance':1 option)...
for example:
def barcode_generator(x):<indentation> ean = barcode.get('ean13', x, writer=ImageWriter())<indentation> filename = ean.save(x, options = {'text_distance':1, 'quiet_zone':2.5, module_height':6,'font_size':16})x="770332600000"barcode_generator(x):Keeping this open as a reminder to improve the docs on this topic.