Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't do unicode/emoji? #6

Open
NoobDoesMC opened this issue Feb 17, 2018 · 3 comments
Open

Doesn't do unicode/emoji? #6

NoobDoesMC opened this issue Feb 17, 2018 · 3 comments

Comments

@NoobDoesMC
Copy link

NoobDoesMC commented Feb 17, 2018

Just tried rendering 🔥 but it gives this instead:

screen shot 2018-02-17 at 13 53 20

@NoobDoesMC
Copy link
Author

NoobDoesMC commented Feb 17, 2018

It also didn't do 中文

中文 became screen shot 2018-02-17 at 15 22 24

@tkrkt
Copy link
Owner

tkrkt commented Feb 20, 2018

I also confirmed same behavior, but it is hard for text2png to fix.

text2png depends on node-canvas, it depends on cairo.
Stable version of cairo(1.14.12) probably does not support emoji...

On the other hand, development version of cairo(1.15.8) supports emoji.

https://cairographics.org/news/cairo-1.15.8/

Features and Enhancements
-------------------------
* Support colored emoji glyphs, stored as PNG images in OpenType fonts.

If you get and build the development version of cairo, you may be able to use emoji.
(I have not tried it yet)

@beniper
Copy link

beniper commented Mar 6, 2019

@tkrkt is there a way to update the package to support emoji?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants