1
0
mirror of https://github.com/python-escpos/python-escpos synced 2025-08-24 09:03:34 +00:00

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

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.