Skip to content

Conversation

lucasmerlin
Copy link
Collaborator

@lucasmerlin lucasmerlin commented Jul 10, 2025

#7298 and a discussion on discord made me realize that adding custom color emoji support would be quite trivial now, so I made this prototype:

Screen.Recording.2025-07-10.at.20.37.36.mov

It currently only works with dark mode, we probably need some flag on the Glyph that it has color data and should not be affected with any tint.
Also this won't work for loading fonts with color emojis, for that we need #5784 or ab_glyph needs texture data support. It's more for loading custom emojis like on discord and slack (which would be perfectly fine for my usecase)

@lucasmerlin lucasmerlin marked this pull request as draft July 10, 2025 18:42
Copy link

Preview available at https://egui-pr-preview.github.io/pr/7333-lucascolor-emojis
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@emilk
Copy link
Owner

emilk commented Aug 7, 2025

Neat! I think this is a cool feature to add, but in order to properly ship it we need to store a Map<char, ColorImage> somewhere (in Fonts?) so that we can repopulate the texture atlas when it is flushed.

We also need to figure out the tint problem.

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.

2 participants