-
Notifications
You must be signed in to change notification settings - Fork 271
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
Noto Color Emoji Migration #554
Conversation
That was indeed the issue for some, though there are more than one variation character that also exhibit the behavior.
This is also the case for twemoji. Once again the issue is probably an artifact of
They render just fine with Twemoji, probably means that the filename isn't the same in Noto Color? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README needs to be updated to say Noto Color Emojis instead of Twemoji
The issue seems to be that |
I made a draft PR in their repo today where I attempt to update it to use emoji from Unicode 14.0. Hopefully, the maintainers will be able to check it out. |
Yes but seems to use system emojis.
I think I know why. Those characters are omitted when you parse emoji using unicode.net's script, hence why they're rendered as the Windows ones. I assume it uses Windows 10's emoji because the repo has its "seguiemj.ttf" file. BTW, my PR in unicode.net was squashed and merged, though the nuget package is yet to be deployed. You could try compiling it yourself and test in your local build.
вс, 26 февр. 2023 г., 7:40 Scrub ***@***.***>:
… Have you tested the skin and hair modifiers (🏻🏼🏽🏾🏿🦰🦱🦲🦳) on their
own? Last time they didn't work for me.
[image: image]
<https://user-images.githubusercontent.com/72096833/221392633-7e8a2a54-8c8f-4b66-b864-a9d116f05b3a.png>
—
Reply to this email directly, view it on GitHub
<#554 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESODSZXR26GOBGLSL3NTE3WZLNDLANCNFSM6AAAAAAVEZ67JI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Is this related to my issue #578 (comment) and why I can't render chat? |
No, this PR hasn't even been merged yet. Your issue is something different. |
I just made some improvements to emoji fetching so you'll have to sort that out, sorry. I was also thinking maybe we could make the emoji type customizable during the migration. That would mean making a separate function for Noto and then can just do an inline if inside the renderer fetch function |
Did it fix those flags?
I mean, it's not like this PR is gonna go anywhere until the newer NuGet package of Unicode.net is released, which might take some time. |
No, just switching from reading everything into memory to streaming directly to the disk, streaming directly to SKBitmap.Decode. I might have an idea to fix those flags but there's no telling if it'll actually work. |
OK, I think I was able to resolve the conflicts. LMK if something is wrong, it's been ages since I've done it. Also, I'm not opposed to having both Twemoji and Noto, if that's what you meant by customizable emoji type, but my personal preference would be to keep Noto as the default vendor, as it's being maintained unlike Twemoji. |
I think you accidentally undid everything you changed in |
Yes, please do. I haven't done any major Git things in years now. |
Thanks. I believe it can be merged now. We'll take care of Unicode.net 14 later, as it might take a few more months. |
…run with new cache, optimize noto-emoji zip
Pushing that to the PR from my local editor instead of vscode.dev was a bit of a pain. The changes I made:
The noto-emoji zip will result in a near doubling in the size for the CLI which made me think maybe we should stop embedding the emojis inside the binary and instead fetch it from this git repository when it is required. This also means no emojis when rendering offline with a fresh cache, but I personally think it's worth the smaller initial download size. Does anyone else agree or disagree? |
For the hell of it, I tried compressing the emojis zips as |
I'll merge this for now I guess since nobody commented about fetching emojis at runtime. I'll look into |
+23MB for google noto emojis, that hurts. I really want to implement downloading them at runtime instead. |
This is my attempt at migrating Twitch Downloader from Twemoji to Google Noto Color Emoji. I tried my best to do it, but of course there are certain things I couldn't fix.
Here are some tests with emoji I did, shamelessly stolen from https://getemoji.com/.
Normal Emoji
Skin Tones
And now, for the notes and bugs:
FE0F
character sometimes render with an extra empty character near them (this is just my hypothesis, I don't actually know what's causing it).Here is the JSON file I've used to test the emoji. It's rather messy since I just took the order from getemoji, but it should contain everything, including Emoji 14 emoji + hair components and skin modifiers on their own.
https://www.dropbox.com/s/w9tugy84ydlbpoc/emojitest.json?dl=1
I'll also include an empty comment JSON, just so that you could test individual emoji on your own without having to render everything.
https://www.dropbox.com/s/v820dshjohb2zyc/emojitest_blank.json?dl=1