New font check

This commit is contained in:
Sean Corrigan 2020-12-24 16:44:43 -05:00
parent ad4f03c841
commit 3f88e8a212
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,8 @@ def sendUpdate(message):
# message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf" # message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf"
draw = ImageDraw.Draw(image) draw = ImageDraw.Draw(image)
font15 = ImageFont.truetype('wqy-microhei.ttc', 20) # font15 = ImageFont.truetype('wqy-microhei.ttc', 20)
font15 = ImageFont.truetype('fancyfont.ttf', 20)
draw.text((3, 3), '{}'.format(message), font = font15, fill = 0) draw.text((3, 3), '{}'.format(message), font = font15, fill = 0)
image = image.rotate(180) image = image.rotate(180)
epd.display(epd.getbuffer(image)) epd.display(epd.getbuffer(image))

BIN
fancyfont.ttf Normal file

Binary file not shown.