Skip to content

Is it possible to use colored Whatsapp/Facebook emoji?Β #3346

@guitar9

Description

@guitar9

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions