Bug 493335

Summary: Emoji Bug in KDE Notifications Caused by QT, Present Since 2019
Product: [I don't know] kde Reporter: musicalstrength27
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: CLOSED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Picture showing the bug

Description musicalstrength27 2024-09-18 19:07:26 UTC
Created attachment 173841 [details]
Picture showing the bug

Hi. The bug I'm referring to has been present since at least 2019 in every linux distribution with KDE. It concerns the correct display of colored emojis. This is a Qt bug that still hasn't been fixed. For example, when I receive messages with colored emojis via Discord, and a notification pops up, one emoji is colored while the rest are white without a background. It looks strange and off-putting to me. This should be fixed. I'm attaching an image of how it looks.

You can temporarily fix this by typing sudo nano ~/.config/fontconfig/fonts.conf and pasting and save this content there:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <alias>
  <family>serif</family>
  <prefer>
   <family>Noto Sans</family>
   <family>Noto Color Emoji</family>
  </prefer>
 </alias>
 <alias>
  <family>sans-serif</family>
  <prefer>
   <family>Noto Sans</family>
   <family>Noto Color Emoji</family>
  </prefer>
 </alias>
 <alias>
  <family>monospace</family>
  <prefer>
   <family>Noto Sans</family>
   <family>Noto Color Emoji</family>
  </prefer>
 </alias>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit name="hinting" mode="assign">
   <bool>true</bool>
  </edit>
 </match>
 <match target="font">
  <edit name="hintstyle" mode="assign">
   <const>hintslight</const>
  </edit>
 </match>
</fontconfig>

Here is the link to the page where this bug was reported:
https://bugreports.qt.io/browse/QTBUG-80434

Please fix it, I believe that once it's resolved, everyone, including me, will be happy :-)
Comment 1 Nate Graham 2024-09-18 19:15:24 UTC
Qt bugs are tracked on the Qt bug tracker, as you've discovered. Opening another one here to tell us to go fix it is not an appropriate use of the KDE bug tracker, sorry.