Commit 9563cf60 authored by gijs's avatar gijs

Even bigger type

parent b91e5a5a
...@@ -26,7 +26,7 @@ pen = 1 ...@@ -26,7 +26,7 @@ pen = 1
speed = 10 speed = 10
force = 1 force = 1
font=Font(path='fonts/converted/futural.fnt', resolution=1, scale=4.5) font=Font(path='fonts/converted/futural.fnt', resolution=1, scale=5.5)
app = Flask(__name__) app = Flask(__name__)
...@@ -51,15 +51,15 @@ def ploteps(): ...@@ -51,15 +51,15 @@ def ploteps():
textbox = Textbox( textbox = Textbox(
font=font, font=font,
width = 70 * 40, width = 80 * 40,
position = Coordinate(page['right'] - (75 * 40), page['bottom'] + (18 * 40)), position = Coordinate(page['right'] - (85 * 40), page['bottom'] + (18 * 40)),
align = Textbox.alignLeft, align = Textbox.alignLeft,
lineHeight=1.40 lineHeight=1.40
) )
textbox.insertText('{0} \n{1} \n\ntype.code, Maison du Livre, Bruxelles'.format(hpglfile, datetime.now().strftime("%d-%m-%Y %H:%M"))) textbox.insertText('{0} \n{1} \n\ntype.code, Maison du Livre, Bruxelles'.format(hpglfile, datetime.now().strftime("%d-%m-%Y %H:%M")))
hpgl = 'RO90;IP0,0,7600,10870;SC{0},{1},{2},{3};SP{4};FS{5};VS{6};PU;{7};PU;'.format(page['left'], page['right'], page['bottom'], page['top'], pen, force, speed, cleanhpgl) hpgl = 'IN;RO90;IP0,0,7600,10870;SC{0},{1},{2},{3};SP{4};FS{5};VS{6};PU;{7};PU;'.format(page['left'], page['right'], page['bottom'], page['top'], pen, force, speed, cleanhpgl)
# hpgl += box((page['left'] + 200, page['bottom'] + 200), 200 * 40, 287 * 40) # hpgl += box((page['left'] + 200, page['bottom'] + 200), 200 * 40, 287 * 40)
hpgl += textbox.hpgl() hpgl += textbox.hpgl()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment