-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Color emoji not rendered #2506
Comments
Hi, this is probably due to an issue with rendering coloured fonts, most likely in cairo as there are a few possible candidates here - https://gitlab.freedesktop.org/cairo/cairo/-/issues?scope=all&utf8=%E2%9C%93&state=opened&search=emoji |
This comment has been minimized.
This comment has been minimized.
This is likely to be due to https://gitlab.freedesktop.org/cairo/cairo/-/issues/326 |
I'm having the same issue and I haven't been able to solve it. I would like to use Twitter Color Emoji rather than noto though. Creating a font.conf with hinting enabled did nothing, and FC_DEBUG=1024 does say the file is being loaded. FC_DEBUG=1 shows a bunch of fonts from the path, but all of them have hinting set to false.pango-view doesn't seem to help either. while sharp can render emojis with outline (but no color), pango-view shows no emojis at all. |
Any solution to this @lovell ? I'm trying with Apple Color Emoji |
I am getting the same issue on sharp. I have tested with noto-color-emoji and with emoji-one on ubuntu 22, but without success. I have already tried
|
Same issue, in my case The fact that I can get Edit: sharp({ text: { text: "...", font: "sans-serif", rgba: true } }); The emoji is rendered correctly with |
This is due to that librsvg renders all text as paths to workaround a Pango bug, see for details: So, this issue is currently blocked on https://gitlab.gnome.org/GNOME/librsvg/-/issues/911. Note that the text operation can be used as an alternative, which should work with colored emoji glyphs after PR lovell/sharp-libvips#228 (sharp v0.33.5). |
Are you using the latest version? Is the version currently in use as reported by
npm ls sharp
the same as the latest version as reported bynpm view sharp dist-tags.latest
?Yes [email protected]
What are the steps to reproduce?
i tried this code to convert svg to text
i tested it on w3schools.com it shows this
but using sharp i got this
and i installed noto-color-emoji
The text was updated successfully, but these errors were encountered: