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

Some emojis appear with a missing character in addition of the emoji itself #4364

Open
djeedai opened this issue Apr 14, 2024 · 2 comments
Open
Labels
bug Something is broken

Comments

@djeedai
Copy link

djeedai commented Apr 14, 2024

Describe the bug

Using a supported emoji as part of a menu button, some emojis are rendered correctly, others are rendered AND an additional missing character box is also rendered.

To Reproduce

egui::menu::menu_button(ui, "📄 File", |ui|  { ... });
Emoji Result
📄 OK
🔎 OK
👁️ Bug
🗄️ Bug

Expected behavior

No error box rendered.

Screenshots

image

Desktop (please complete the following information):

  • OS: Win11
@djeedai djeedai added the bug Something is broken label Apr 14, 2024
@YgorSouza
Copy link
Contributor

These emojis have modifiers, and I'm guessing egui doesn't support that at the moment. According to #56, egui doesn't support "all of Unicode" yet. You can always paste the emoji on a TextEdit (like the Font Book in the demo app) and copy only the first character to get the unmodified version, like 👁 and 🗄.

@djeedai
Copy link
Author

djeedai commented Apr 14, 2024

Ah yes that's quite possible, I pasted them from the Windows dialog Win+. and I didn't think about modifiers. I'll check and confirm, thanks for the tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

2 participants