-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
What did you do?
from PIL import Image, ImageDraw, ImageFont
import textwrap
astr = ''' π©ββοΈ: Hπ©β'''
para = textwrap.wrap(astr, width=40)
MAX_W, MAX_H = 400, 100 + 30 * len(para)
im = Image.new('RGB', (MAX_W, MAX_H), (0, 45, 0, 0))
draw = ImageDraw.Draw(im)
font = ImageFont.truetype('DejaVuSans.ttf', size=18)
current_h, pad = 50, 10
for line in para:
w, h = draw.textsize(line, font=font)
draw.text(((MAX_W - w) / 2, current_h), line, font=font)
current_h += h + pad
im.save('test.png')What did you expect to happen?
Is it possible to show colored Whatsapp oder Facebook Emoji?
What actually happened?
For the woman emoji i only get a white rect.
What versions of Pillow and Python are you using?
Pillow 3.1.2
Python 3.5.2
anthony-chaudhary, tpywao, clement-ldr, GanerCodes, hpoul and 1 more