Text fixes
This commit is contained in:
parent
b201c6d8c7
commit
899f7c4ecd
|
@ -36,7 +36,6 @@ def print_name_label(text, margin=10, rotate=False, label_type="62", printer_typ
|
|||
height = th+2*margin
|
||||
else:
|
||||
while tw + 2*margin > width or th + 2*margin > height:
|
||||
print(fs)
|
||||
font = ImageFont.truetype(font_path, fs)
|
||||
tw, th = font.getsize(text)
|
||||
fs -= 1
|
||||
|
|
|
@ -6,7 +6,7 @@ import conf
|
|||
|
||||
class PrintLabelMenu(Menu):
|
||||
def __init__(self):
|
||||
Menu.__init__(self, 'Print bar code', uses_db=True)
|
||||
Menu.__init__(self, 'Print a label', uses_db=True)
|
||||
self.help_text = '''
|
||||
Prints out a product bar code on the printer
|
||||
|
||||
|
|
Loading…
Reference in New Issue