1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-06-25 08:38:43 +00:00

5 Commits

Author SHA1 Message Date
Patrick Kanzler
87b33367c0
add magic coding comment 2018-05-16 02:02:35 +02:00
Patrick Kanzler
9b8e56cd59
cleanup imports, first part 2018-05-16 01:23:04 +02:00
Patrick Kanzler
c0af9aaaf4
remove bad quotes 2018-05-16 01:09:48 +02:00
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