pop-os / cosmic-text

Pure Rust multi-line text handling

Home Page:https://pop-os.github.io/cosmic-text/cosmic_text/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect glyph information for emojis on Windows 11

ecton opened this issue · comments

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!)