Skip to content

Stop using Twemoji and just use SVGs for it #1364

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

Merged
merged 4 commits into from
May 6, 2025
Merged

Stop using Twemoji and just use SVGs for it #1364

merged 4 commits into from
May 6, 2025

Conversation

ImUrX
Copy link
Member

@ImUrX ImUrX commented Apr 3, 2025

I replaced the ~2MB of emoji fonts that we had with normal SVG imports which reduced the total size of the binary and we don't have to make any special hack for fonts in some OSes.

@ImUrX ImUrX added the Type: Enhancement Adds or improves a feature label Apr 3, 2025
@github-actions github-actions bot added the Area: GUI Related to the GUI label Apr 3, 2025
Copy link
Member

@Eirenliel Eirenliel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But does it work in other places? Like if we put emoji in a changelog in firmware?

@ImUrX
Copy link
Member Author

ImUrX commented Apr 23, 2025

No it doesn't work with other places as it's all manually replaced, the reason why I don't like the current way of doing it is that it's kind of a hack that works in different ways depending on the browser and doesn't even work in Linux.

We could use a library that replaces all emojis with an svg automatically but it might be heavier in size than the two color fonts combined, but I'm not sure

Copy link
Member

@Eirenliel Eirenliel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aight, no emojis for changelogs i guess

@ImUrX
Copy link
Member Author

ImUrX commented Apr 23, 2025

Emojis will still work, it will just use the os default emoji font

@Eirenliel Eirenliel merged commit 868c441 into main May 6, 2025
13 checks passed
@Eirenliel Eirenliel deleted the twemoji-svg branch May 6, 2025 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: GUI Related to the GUI Type: Enhancement Adds or improves a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants