New font check
This commit is contained in:
parent
ad4f03c841
commit
3f88e8a212
@ -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
BIN
fancyfont.ttf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user