I am currently trying to write text with colourful emoji using pillow, but everytime I used it, I always got a blank image
code:
from PIL import Image, ImageDraw, ImageFont
back_ground_color = (50, 50, 50)
unicode_text = u"π"
im = Image.new("RGB", (500, 500), back_ground_color)
draw = ImageDraw.Draw(im)
font_info = {'test': [r"./NotoColorEmoji.ttf", 30]}
pos = [(100, 10), (50, 40), (50, 160), (100, 320)]
for i, item in enumerate(font_info.items()):
path, size = item[1]
font = ImageFont.truetype(path, size)
draw.text(pos[i], unicode_text, font=font, embedded_color=True)
im.save("output.png")```