Text fixes

This commit is contained in:
Christoffer Viken 2017-03-25 16:02:29 +00:00
parent b201c6d8c7
commit 899f7c4ecd
2 changed files with 1 additions and 2 deletions

View File

@ -36,7 +36,6 @@ def print_name_label(text, margin=10, rotate=False, label_type="62", printer_typ
height = th+2*margin height = th+2*margin
else: else:
while tw + 2*margin > width or th + 2*margin > height: while tw + 2*margin > width or th + 2*margin > height:
print(fs)
font = ImageFont.truetype(font_path, fs) font = ImageFont.truetype(font_path, fs)
tw, th = font.getsize(text) tw, th = font.getsize(text)
fs -= 1 fs -= 1

View File

@ -6,7 +6,7 @@ import conf
class PrintLabelMenu(Menu): class PrintLabelMenu(Menu):
def __init__(self): def __init__(self):
Menu.__init__(self, 'Print bar code', uses_db=True) Menu.__init__(self, 'Print a label', uses_db=True)
self.help_text = ''' self.help_text = '''
Prints out a product bar code on the printer Prints out a product bar code on the printer