Commit Graph

8 Commits

Author SHA1 Message Date
Romain Porte d348712439 PEP8 software barcode example 2017-05-22 20:25:51 +02:00
Romain Porte 737cc3176e First implementation of software barcode
Actually the hardware barcode implementation is very specific and not
generic enough for just adding a `soft_render=True` argument to it. This
is a first work that can be improved with other commits, maybe for
merging this method in the `barcode` method after some cleanup.

The width, height and text_distance were set using empiric
print-and-retry tests so that the generated barcode looks nice to the
eye (and to the eye of an Android scanner tool.

!WARNING! Printing a barcode that is too large in width will result in
the printer to go crazy trying to print an image that is too large for
it. This may be fixed by raising an exception in the `image` method.
2017-05-16 20:56:27 +02:00
Patrick Kanzler 1579f05cb7
use print function in example 2017-01-30 03:00:23 +01:00
Patrick Kanzler 972c7a2238
use explicit import from constants 2017-01-30 00:44:54 +01:00
Patrick Kanzler c2fc464c55
reformat PEP8 and similar issues 2017-01-30 00:10:14 +01:00
Patrick Kanzler 2ea8e69c66
style fixes 2017-01-29 23:39:26 +01:00
Patrick Kanzler e4a21e94fc
improve doc, improve codepage_tables.py 2017-01-29 23:36:33 +01:00
Michael Elsdörfer 94e1944d16 Add script to output codepage tables. 2016-10-05 12:14:51 +02:00