egui icon indicating copy to clipboard operation
egui copied to clipboard

Color emojis 🦀

Open lucasmerlin opened this issue 5 months ago • 3 comments

#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:

https://github.com/user-attachments/assets/8407ab60-dcde-4769-b0a4-e102f386fae1

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 avatar Jul 10 '25 18:07 lucasmerlin

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.

github-actions[bot] avatar Jul 10 '25 18:07 github-actions[bot]

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.

emilk avatar Aug 07 '25 09:08 emilk

exciting!

jb55 avatar Nov 14 '25 12:11 jb55