hi,
I’m just experimenting a bit with the inkypyhat.
Currently I would like to display some special characters on the screen,
like the ones from the pwnagotchi project or from textfac.es.
But most of the characters are not displayed.
Maybe you can give me tips to solve this. Running Python V 2.7.16 on raspberry pi zero wh.
(Already tried different fonts.)
my testing code:
# -*- coding: utf-8 -*-
from inky import InkyPHAT
inky_display = InkyPHAT("black")
inky_display.set_border(inky_display.WHITE)
from PIL import Image, ImageFont, ImageDraw
img = Image.new("P", (inky_display.WIDTH, inky_display.HEIGHT))
draw = ImageDraw.Draw(img)
#from font_fredoka_one import "DejaVuSansMono.ttf"
font = ImageFont.truetype("arial.ttf", 32)
message = u'( ¯\_(ツ)_/¯)'
w, h = font.getsize(message)
x = (inky_display.WIDTH / 2) - (w / 2)
y = (inky_display.HEIGHT / 2) - (h / 2)
draw.text((x, y), message, inky_display.BLACK, font)
inky_display.set_image(img)
inky_display.show()
Greetings
Kaito