Update escpos.py

Set block_text to use the default font. This means calls will wrap to full paper width.
This commit is contained in:
B. Howell 2020-11-28 00:41:11 +01:00 committed by GitHub
parent 620cf97bbf
commit 69e9b9103e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -539,7 +539,7 @@ class Escpos(object):
if count > 0:
self.text('\n' * count)
def block_text(self, txt, font=None, columns=None):
def block_text(self, txt, font="0", columns=None):
""" Text is printed wrapped to specified columns
Text has to be encoded in unicode.