#974924 Plasma 5.19.5.x: Emojis in black and white ( not color and not displayed correctly)

#974924#5
Date:
2020-11-16 14:56:37 UTC
From:
To:
Dear Maintainer,

When I press the combination keys "Meta + ." (Plasma 5.19.5.x) the emoji
selector is launched and these are shown in black and white and many of them
are not displayed correctly. I have installed the package: "fonts-noto-color-
emoji" and "fonts-noto-*"

I found a solution.. but it seemed dirty to me. I will add this at end of the
file ~/.config/fontconfig/fonts.conf

Link:
https://www.reddit.com/r/kde/comments/fpov5d/help_emojis_in_black_and_white/

"<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>"

Best Regards,

Héctor

#974924#10
Date:
2020-11-18 05:14:04 UTC
From:
To:
Hi Héctor,

I suggest closing this bug, since it is a configuration issue:
	fc-match --verbose emoji
because "emoji" is the font requested.

I guess you have some other emoji font installed with a higher priority,
and that font only carries BW emojis. Another option is to de-install
the conflicting font, which you have found via the fc-match call.

The below code is for fonts.conf is crude and should NOT be used because it changes
serif to Noto sans, which is somehow ... well ...broken.

Better solution is given on this page:
https://wiki.archlinux.org/index.php/font_configuration
Quoting from there
*******
Force emoji font
Some software may lacks proper Emoji font fallback support.

To force emoji presentation create emoji font fallback preset for your
application, to enable see #Presets. Replace application and Noto Color
Emoji with your application and preferred emoji font respectively:

/etc/fonts/conf.avail/55-emoji-prepend.conf

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match>
    <test name="prgname">
      <string>application</string>
    </test>
    <edit name="family" mode="prepend" binding="weak">
      <string>Noto Color Emoji</string>
    </edit>
  </match>
</fontconfig>
*****


Hope that helps.

Best

Norbert

#974924#15
Date:
2020-11-18 11:06:02 UTC
From:
To:
It works!

$ sudo nano /etc/fonts/conf.avail/55-emoji-prepend.conf

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match>
    <test name="prgname">
      <string>*ibus-ui-emojier-plasma*</string>
    </test>
    <edit name="family" mode="prepend" binding="weak">
      <string>Noto Color Emoji</string>
    </edit>
  </match>
</fontconfig>

After enable presets:

$ cd /etc/fonts/conf.d
$ ln -s ../conf.avail/55-emoji-prepend.conf

$ sudo reboot

Thank You!!

El mié., 18 nov. 2020 a las 6:14, Norbert Preining (<norbert@preining.info>)
escribió:

#974924#20
Date:
2020-11-18 11:52:48 UTC
From:
To:
Hi Hector,

Good to hear that it worked, but it would be still interested to see the output of the fc-match command before adding the new config file. Maybe the font is requesting too high a priority.

Thanks

Norbert

#974924#25
Date:
2020-11-18 12:03:05 UTC
From:
To:
Ok, here the output  without the file *55-emoji-prepend.conf*

hector:~$ fc-match --verbose emoji


Best Regards,

Héctor

El mié., 18 nov. 2020 a las 12:52, Norbert Preining (<preining@logic.at>)
escribió:

#974924#30
Date:
2020-11-18 12:10:00 UTC
From:
To:
Thanks, but that has still the cached old data I guess, since it shows the Noto don't.


You probably need to call fc-cache -f -s first (of I remember the command line options correctly).

It shouldn't show the Noto color emoji font.

Best

Norbert

#974924#35
Date:
2020-11-18 13:51:36 UTC
From:
To:
Hi Héctor

thanks for testing!

Did you do this as root or with sudo?

That is strange a message!!!

STill returns the same, very very strange.

Thanks

Norbert

#974924#40
Date:
2020-11-18 14:06:57 UTC
From:
To:
No, I didn't. Now yes:

hector:~$* sudo fc-cache -f -s -v *
[sudo] password for hector:


/usr/share/fonts: caching, new cache contents: 0 fonts, 9 dirs
/usr/share/fonts/X11: caching, new cache contents: 0 fonts, 6 dirs
/usr/share/fonts/X11/100dpi: caching, new cache contents: 358 fonts, 0 dirs
/usr/share/fonts/X11/75dpi: caching, new cache contents: 358 fonts, 0 dirs
/usr/share/fonts/X11/Type1: caching, new cache contents: 83 fonts, 0 dirs
/usr/share/fonts/X11/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: caching, new cache contents: 0 fonts,
0 dirs
/usr/share/fonts/X11/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/X11/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cMap: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/cmap: caching, new cache contents: 0 fonts, 5 dirs
/usr/share/fonts/cmap/adobe-cns1: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/cmap/adobe-gb1: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/cmap/adobe-japan1: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/cmap/adobe-japan2: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/cmap/adobe-korea1: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/eot: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/eot/font-awesome: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/opentype: caching, new cache contents: 1 fonts, 8 dirs
/usr/share/fonts/opentype/cantarell: caching, new cache contents: 5 fonts,
0 dirs
/usr/share/fonts/opentype/firacode: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/opentype/font-awesome: caching, new cache contents: 1
fonts, 0 dirs
/usr/share/fonts/opentype/inter: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/opentype/linux-libertine: caching, new cache contents: 13
fonts, 0 dirs
/usr/share/fonts/opentype/mathjax: caching, new cache contents: 24 fonts, 0
dirs
/usr/share/fonts/opentype/noto: caching, new cache contents: 73 fonts, 0
dirs
/usr/share/fonts/opentype/urw-base35: caching, new cache contents: 35
fonts, 0 dirs
/usr/share/fonts/svg: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/svg/font-awesome: caching, new cache contents: 0 fonts, 0
dirs
/usr/share/fonts/truetype: caching, new cache contents: 0 fonts, 21 dirs
/usr/share/fonts/truetype/ancient-scripts: caching, new cache contents: 1
fonts, 0 dirs
/usr/share/fonts/truetype/crosextra: caching, new cache contents: 8 fonts,
0 dirs
/usr/share/fonts/truetype/dejavu: caching, new cache contents: 22 fonts, 0
dirs
/usr/share/fonts/truetype/droid: caching, new cache contents: 1 fonts, 0
dirs
/usr/share/fonts/truetype/firacode: caching, new cache contents: 6 fonts, 0
dirs
/usr/share/fonts/truetype/font-awesome: caching, new cache contents: 1
fonts, 0 dirs
/usr/share/fonts/truetype/freefont: caching, new cache contents: 12 fonts,
0 dirs
/usr/share/fonts/truetype/gentium: caching, new cache contents: 4 fonts, 0
dirs
/usr/share/fonts/truetype/gentium-basic: caching, new cache contents: 8
fonts, 0 dirs
/usr/share/fonts/truetype/hack: caching, new cache contents: 4 fonts, 0 dirs
/usr/share/fonts/truetype/lato: caching, new cache contents: 18 fonts, 0
dirs
/usr/share/fonts/truetype/liberation: caching, new cache contents: 16
fonts, 0 dirs
/usr/share/fonts/truetype/liberation2: caching, new cache contents: 12
fonts, 0 dirs
/usr/share/fonts/truetype/libreoffice: caching, new cache contents: 1
fonts, 0 dirs
/usr/share/fonts/truetype/msttcorefonts: caching, new cache contents: 60
fonts, 0 dirs
/usr/share/fonts/truetype/noto: caching, new cache contents: 2233 fonts, 0
dirs
/usr/share/fonts/truetype/open-sans: caching, new cache contents: 13 fonts,
0 dirs
/usr/share/fonts/truetype/openoffice: caching, new cache contents: 0 fonts,
0 dirs
/usr/share/fonts/truetype/quicksand: caching, new cache contents: 4 fonts,
0 dirs
/usr/share/fonts/truetype/roboto: caching, new cache contents: 0 fonts, 1
dirs
/usr/share/fonts/truetype/roboto/unhinted: caching, new cache contents: 0
fonts, 1 dirs
/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF: caching, new cache
contents: 0 fonts, 0 dirs
/usr/share/fonts/truetype/ttf-dejavu: caching, new cache contents: 6 fonts,
0 dirs
/usr/share/fonts/type1: caching, new cache contents: 0 fonts, 2 dirs
/usr/share/fonts/type1/gsfonts: caching, new cache contents: 35 fonts, 0
dirs
/usr/share/fonts/type1/urw-base35: caching, new cache contents: 35 fonts, 0
dirs
/usr/share/fonts/woff: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/woff/font-awesome: caching, new cache contents: 0 fonts, 0
dirs
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 1 dirs
/usr/local/share/fonts/m: caching, new cache contents: 1 fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm: caching, new cache contents: 72
fonts, 0 dirs
/usr/share/texmf/fonts/opentype/public/lm-math: caching, new cache
contents: 1 fonts, 0 dirs
/usr/share/fonts/X11: skipping, looped directory detected
/usr/share/fonts/cMap: skipping, looped directory detected
/usr/share/fonts/cmap: skipping, looped directory detected
/usr/share/fonts/eot: skipping, looped directory detected
/usr/share/fonts/opentype: skipping, looped directory detected
/usr/share/fonts/svg: skipping, looped directory detected
/usr/share/fonts/truetype: skipping, looped directory detected
/usr/share/fonts/type1: skipping, looped directory detected
/usr/share/fonts/woff: skipping, looped directory detected
/usr/local/share/fonts/m: skipping, looped directory detected
/usr/share/fonts/X11/100dpi: skipping, looped directory detected
/usr/share/fonts/X11/75dpi: skipping, looped directory detected
/usr/share/fonts/X11/Type1: skipping, looped directory detected
/usr/share/fonts/X11/encodings: skipping, looped directory detected
/usr/share/fonts/X11/misc: skipping, looped directory detected
/usr/share/fonts/X11/util: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-cns1: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-gb1: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-japan1: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-japan2: skipping, looped directory detected
/usr/share/fonts/cmap/adobe-korea1: skipping, looped directory detected
/usr/share/fonts/eot/font-awesome: skipping, looped directory detected
/usr/share/fonts/opentype/cantarell: skipping, looped directory detected
/usr/share/fonts/opentype/firacode: skipping, looped directory detected
/usr/share/fonts/opentype/font-awesome: skipping, looped directory detected
/usr/share/fonts/opentype/inter: skipping, looped directory detected
/usr/share/fonts/opentype/linux-libertine: skipping, looped directory
detected
/usr/share/fonts/opentype/mathjax: skipping, looped directory detected
/usr/share/fonts/opentype/noto: skipping, looped directory detected
/usr/share/fonts/opentype/urw-base35: skipping, looped directory detected
/usr/share/fonts/svg/font-awesome: skipping, looped directory detected
/usr/share/fonts/truetype/ancient-scripts: skipping, looped directory
detected
/usr/share/fonts/truetype/crosextra: skipping, looped directory detected
/usr/share/fonts/truetype/dejavu: skipping, looped directory detected
/usr/share/fonts/truetype/droid: skipping, looped directory detected
/usr/share/fonts/truetype/firacode: skipping, looped directory detected
/usr/share/fonts/truetype/font-awesome: skipping, looped directory detected
/usr/share/fonts/truetype/freefont: skipping, looped directory detected
/usr/share/fonts/truetype/gentium: skipping, looped directory detected
/usr/share/fonts/truetype/gentium-basic: skipping, looped directory detected
/usr/share/fonts/truetype/hack: skipping, looped directory detected
/usr/share/fonts/truetype/lato: skipping, looped directory detected
/usr/share/fonts/truetype/liberation: skipping, looped directory detected
/usr/share/fonts/truetype/liberation2: skipping, looped directory detected
/usr/share/fonts/truetype/libreoffice: skipping, looped directory detected
/usr/share/fonts/truetype/msttcorefonts: skipping, looped directory detected
/usr/share/fonts/truetype/noto: skipping, looped directory detected
/usr/share/fonts/truetype/open-sans: skipping, looped directory detected
/usr/share/fonts/truetype/openoffice: skipping, looped directory detected
/usr/share/fonts/truetype/quicksand: skipping, looped directory detected
/usr/share/fonts/truetype/roboto: skipping, looped directory detected
/usr/share/fonts/truetype/ttf-dejavu: skipping, looped directory detected
/usr/share/fonts/type1/gsfonts: skipping, looped directory detected
/usr/share/fonts/type1/urw-base35: skipping, looped directory detected
/usr/share/fonts/woff/font-awesome: skipping, looped directory detected
/usr/share/fonts/X11/encodings/large: skipping, looped directory detected
/usr/share/fonts/truetype/roboto/unhinted: skipping, looped directory
detected
/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF: skipping, looped
directory detected

*/var/cache/fontconfig: cleaning cache directory*fc-cache: succeeded

hector:~$ fc-match --verbose emoji

Pattern has 42 elts (size 48)
       family: "Noto Color Emoji"(s)
       familylang: "en"(s)
       style: "Regular"(s)
       stylelang: "en"(s)
       fullname: "Noto Color Emoji"(s)
       fullnamelang: "en"(s)
       slant: 0(i)(s)
       weight: 80(f)(s)
       width: 100(f)(s)
       size: 104,64(f)(w)
       pixelsize: 109(f)(s)
       spacing: 100(i)(w)
       foundry: "GOOG"(w)
       antialias: True(w)
       hintstyle: 1(i)(w)
       hinting: True(w)
       verticallayout: False(s)
       autohint: False(s)
       globaladvance: True(s)
       file: "/usr/share/fonts/truetype/noto/NotoColorEmoji.ttf"(w)
       index: 0(i)(w)
       outline: False(w)
       scalable: True(w)
       dpi: 75(f)(s)
       rgba: 1(i)(w)
       scale: 1(f)(s)
       matrix: [0,114679 0; 0 0,114679](w)
       charset:
       0000: 00000000 03ff0409 00000000 00000000 00000000 00004200 00000000
00000000
       0020: 00002000 10000000 00000200 00000000 00000000 00000000 00000000
00000008
       0021: 00000000 02000004 00000000 00000000 03f00000 00000600 00000000
00000000
       0023: 0c000000 00000100 00000000 00000000 00000000 00000000 00008000
070ffe00
       0024: 00000000 00000000 00000000 00000000 00000000 00000000 00000004
00000000
       0025: 00000000 00000000 00000000 00000000 00000000 00400c00 00000001
78000000
       0026: 2132401f 0700c44d 800fff05 c8000169 1afc0000 60030c83 001ac130
27bf0600
       0027: 2054bf24 00180102 00b85090 00000018 00e00000 80010002 00000000
00000000
       0029: 00000000 00300000 00000000 00000000 00000000 00000000 00000000
00000000
       002b: 180000e0 00000000 00210000 00000000 00000000 00000000 00000000
00000000
       0030: 00000000 20010000 00000000 00000000 00000000 00000000 00000000
00000000
       0032: 00000000 00000000 00000000 00000000 02800000 00000000 00000000
00000000
       01f0: 00000010 00000000 00000000 00000000 00000000 00000000 00008000
00000000
       01f1: 00000000 00000000 00000000 c0030000 07fe4000 00000000 00000000
ffffffc0
       01f2: 04000006 07fc8000 00030000 00000000 00000000 00000000 00000000
00000000
       01f3: ffffffff fffffff3 ffffffff ffffffff cecfffff ffffffff ffffffff
ffb9ffff
       01f4: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
bfffffff
       01f5: ffffffff 3fffffff ffff7e00 07f980ff 00613c80 10060130 700e001c
fc08810a
       01f6: ffffffff ffffffff 0000ffff 00000000 ffffffff ffffffff 00e7f83f
1ff91a3f
       01f7: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000fff
       01f9: fffff000 f7ffffff ffffffbf fdffffff ffffffff ffffffff ffffefff
ffffffff
       01fa: 00000000 00000000 00000000 071f0000 ffff007f 007f01ff 007f0007
00000000
       0e00: 00000000 03ff0000 00000000 87fffffe 00000000 00000000 00000000
00000000
       0fe4: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00007fe0
       0fe8: 00000000 00ffd000 00000000 00000000 00000000 00000000 00000000
00000000
(w)
       lang: und-zsye(s)
       fontversion: 132383(i)(s)
       capability: "otlayout:DFLT"(w)
       fontformat: "TrueType"(w)
       embeddedbitmap: True(s)
       decorative: False(s)
       lcdfilter: 1(i)(w)
       namelang: "es"(s)
       prgname: "fc-match"(s)
       postscriptname: "NotoColorEmoji"(w)
       color: DontCare(s)
       symbol: False(s)
       variable: False(s)
       pixelsizefixupfactor: 0,114679(f)(w)


*Note:* Attached screenshot of emojis selector

Best Regards,

Héctor


El mié., 18 nov. 2020 a las 14:51, Norbert Preining (<preining@logic.at>)
escribió:

#974924#45
Date:
2020-12-19 00:48:28 UTC
From:
To:
Hey,

I could reproduce this issue with Palsma 5.19. But this issue is solved for me
with Plasma 5.20.4 from Debian experimental. I can see colorful icons without
any configuration change in /etc/fonts or any other manual step.

regards,

hefee

#974924#50
Date:
2024-03-09 03:17:11 UTC
From:
To:
I've recently started seeing this

$ fc-match -s emoji
Symbola_hint.ttf: "Symbola" "Regular"
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
opens___.ttf: "OpenSymbol" "Regular"
DejaVuMathTeXGyre.ttf: "DejaVu Math TeX Gyre" "Regular"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
Lato-Regular.ttf: "Lato" "Regular"
NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"
D050000L.otf: "D050000L" "Regular"
DroidSansFallbackFull.ttf: "Droid Sans Fallback" "Regular"
StandardSymbolsPS.pfb: "Standard Symbols PS" "Regular"
DejaVuSerif-Italic.ttf: "DejaVu Serif" "Italic"
LiberationSerif-Italic.ttf: "Liberation Serif" "Italic"

Interestingly I don't see NotoColorEmoji.ttf in that list even though I
have the package installed

$ apt-cache show fonts-noto-color-emoji
Package: fonts-noto-color-emoji
Version: 2.042-1
Installed-Size: 10455
Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org
Architecture: all
Description-en: color emoji font from Google
 Noto is a collection of font families, each visually harmonized across
 scripts.
 .
 The name "Noto" is short for "No Tofu", describing the aim of covering
 all living Unicode scripts.
 .
 Tofu (豆腐) is Japanese jargon for unicode replacement character "�"
 (U+FFFD) often displayed as replacement for unassigned or unknown
 characters.
 .
 This package contains the color emoji font used on "stock" Android devices
 such as the Google Pixel.
Description-md5: a9719702f7fba976902bc66487dd558b
Multi-Arch: foreign
Homepage: https://fonts.google.com/noto/specimen/Noto+Color+Emoji
Section: fonts
Priority: optional
Filename:
pool/main/f/fonts-noto-color-emoji/fonts-noto-color-emoji_2.042-1_all.deb
Size: 9626580
MD5sum: c35046d526cd6f8c3ead08bf6f2077ec
SHA256: 8bac9ea54e9a2781d488571d0ee78cec101ad899e78473b78f575a61529e8ac4