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

Add twemoji #4862

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Add twemoji #4862

wants to merge 1 commit into from

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Jul 31, 2024

Closes #1258, #2426

Uses @discordapp/twemoji (discord's fork, I think the original is dead)

Uses jsdelivr CDN, but I'm guessing we'd want to host this ourselves - leaving in draft until we get the backend resource to do that

Implementation:
Made a twemoji component which takes a string, and if it's got emoji in it, splits the graphemes and replaces them with images. Scattered it all around the RichText component, wherever it's rendering a string

Screenshot 2024-07-31 at 23 29 32

Copy link

render bot commented Jul 31, 2024

@mozzius mozzius marked this pull request as draft July 31, 2024 21:35
Copy link

Old size New size Diff
7.02 MB 7.04 MB 17.81 KB (0.25%)

@notoracle
Copy link

There is also this fork of Twemoji. https://github.com/jdecked/twemoji

@mozzius
Copy link
Member Author

mozzius commented Aug 1, 2024

Ah, thanks, that looks a little more up-to-date

@GlitchyPSIX
Copy link

jdecked's twemoji fork is the current fork everyone using twemoji uses, it is consistently updated

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

Successfully merging this pull request may close these issues.

Wrap unicode flag codepoints in a flag supporting font.
3 participants