font 16 and changed height positioning of jokes 1 and 2

This commit is contained in:
Justin 2023-07-17 15:54:55 +08:00 committed by GitHub
parent 14c21a8f1d
commit 36a4028340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6098,7 +6098,7 @@ class StockTicker():
else: else:
image_list = [] image_list = []
font = ImageFont.load("./fonts/BonusCoffee-14.pil") font = ImageFont.load("./fonts/BonusCoffee-16.pil")
small_font = ImageFont.load("./fonts/5x8.pil") small_font = ImageFont.load("./fonts/5x8.pil")
colours = { 'White':(255,255,255), colours = { 'White':(255,255,255),
@ -6159,7 +6159,7 @@ class StockTicker():
img.paste(emoji, (x_offset, 3)) img.paste(emoji, (x_offset, 3))
x_offset += emoji.size[0] + 5 x_offset += emoji.size[0] + 5
x_offset2 = x_offset x_offset2 = x_offset
img.paste(joke1, (x_offset, 2)) img.paste(joke1, (x_offset, 1))
x_offset += joke1.size[0] x_offset += joke1.size[0]
img.paste(category_icon, (x_offset2, 20)) img.paste(category_icon, (x_offset2, 20))
x_offset2 += category_icon.size[0] + 2 x_offset2 += category_icon.size[0] + 2
@ -6175,7 +6175,7 @@ class StockTicker():
except: except:
pass pass
try: try:
img.paste(joke2, (max(x_offset, x_offset2), 18)) img.paste(joke2, (max(x_offset, x_offset2), 16))
except: except:
pass pass
image_list.append(img) image_list.append(img)