how to set text position? #44

Open
opened 2019-07-17 05:03:30 +02:00 by goog · 2 comments
goog commented 2019-07-17 05:03:30 +02:00 (Migrated from github.com)

code128_barcode

![code128_barcode](https://user-images.githubusercontent.com/1488374/61344054-798cdb80-a882-11e9-808c-7ef9da0c3917.png)
blutme commented 2019-09-24 08:20:01 +02:00 (Migrated from github.com)

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):

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):`
WhyNotHugo commented 2020-02-25 02:12:15 +01:00 (Migrated from github.com)

Keeping this open as a reminder to improve the docs on this topic.

Keeping this open as a reminder to improve the docs on this topic.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
WhyNotHugo/python-barcode#44
No description provided.