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

Incorrect glyph information for emojis on Windows 11 #210

Open
ecton opened this issue Jan 9, 2024 · 0 comments
Open

Incorrect glyph information for emojis on Windows 11 #210

ecton opened this issue Jan 9, 2024 · 0 comments

Comments

@ecton
Copy link

ecton commented Jan 9, 2024

I'm going off of very limited information, apologies in advance. I have a user showing that a UI built with my library is rendering black and white glyphs for emoji rather than the colored versions they expect.

Here's what I see on Windows 11:

ecton-emoji

This is the same behavior I see on Linux and Mac as well -- the emoji looks great! However, this is the screen recording the user who reported "emojis are not properly displayed":

coolit-emoji

I'm not sure what questions to ask the user to provide to help diagnose this issue they're seeing. From my understanding of how the API works, this could be one of two issues:

  1. Cosmic Text is selecting and caching a glyph using SwashContent::Mask rather than SwashContent::Color. This could be because the font data is parsed incorrectly, or a incorrectly defined font was selected?
  2. Cosmic Text is selecting a black and white emoji font.

Has anyone encountered this type of issue before, and if so, what can I have the user provide me to help track it down?

(P.S. Thank you for this amazing library!)

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

No branches or pull requests

1 participant