Draft
Conversation
|
Preview available at https://egui-pr-preview.github.io/pr/7333-lucascolor-emojis |
Owner
|
Neat! I think this is a cool feature to add, but in order to properly ship it we need to store a We also need to figure out the tint problem. |
This was referenced Nov 11, 2025
Closed
|
exciting! |
alltheseas
added a commit
to alltheseas/egui
that referenced
this pull request
Jan 30, 2026
This adds support for rendering color emoji in egui via a new opt-in `egui_noto_emoji` crate that bundles Noto Color Emoji sprites. Key features: - New `GlyphColoring` enum to distinguish color vs monochrome glyphs - Color glyphs bypass text tinting and render with original colors - Minimal API: `Context::register_color_glyph[_arc]` methods - Atlas persistence: color glyphs survive font atlas rebuilds - Deferred registration: glyphs registered before fonts init are queued The implementation addresses feedback from PR emilk#7333 and emilk#7707: - Fixes tinting problem (color glyphs not affected by text color) - Handles atlas repopulation when fonts are recreated - Aligns with skrifa+vello_cpu font backend (PR emilk#7694) - Minimal API surface as suggested by @lucasmerlin Co-Authored-By: Claude Opus 4.5 <[email protected]>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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)