Open colinschwegmann opened 4 years ago
Thanks for reporting, but yes, it looks like a limitation of PIL handling the particular font. You could try the svg export and see if that works.
Hi, facing the same issue, but i don't get the "try the svg export and see if that works." Any help on using Noto-emoji with PIL without firing OSError: invalid pixel size ? Thanks !
I was refering to using the to_svg
method in the Wordcloud object. Hope that helps!
Otherwise, as mentioned above, this is a PIL issue.
Description
I can't use the NotoColorEmoji font as the
font_path
in a WC instance. It errors withOSError: invalid pixel size
.It is likely an issue with PIL: https://github.com/python-pillow/Pillow/issues/3346
I've tried to fix it locally by changing the
ImageFont.truetype
call inword_cloud
but that didn't help.Steps/Code to Reproduce
Just swapped out the ttf font from the emoji example.
Example (https://amueller.github.io/word_cloud/auto_examples/emoji.html):
Expected Results
A word cloud with emoji's (and words).
Actual Results
The error
OSError: invalid pixel size
. Specifically:Versions