Re: Bug#1006685: kde-plasma-desktop: KDE does not display Emojis correctly
Hi Max,
> I really tried, but I could not find a guide how to do so. I found
> https://wiki.archlinux.org/title/Font_configuration but it seems not to have a
> section to configure fallback fonts.
I used a different config file, but just found this here which indicates
that it is related to hinting:
https://bugs.freedesktop.org/show_bug.cgi?id=104542
$ cat /etc/fonts/conf.d/68-color-emoji.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<test name="family" compare="contains">
<string>Emoji</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>true</bool>
</edit>
</match>
</fontconfig>
$
Does that work (after sudo fc-cache -f and relogin)?
If not, then
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
<family>DejaVu Sans</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Serif</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
<family>DejaVu Serif</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Mono</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
<family>DejaVu Sans Mono</family>
</prefer>
</alias>
</fontconfig>
Would help, too.
> So maybe this is not related to KDE directly, but I still think its an
> unfortunate situation, and fixing at would significantly improve the user
> experience? Would it make sense to file another bug report against the
> appropriate package, e.g. fontconfig?
My guess is that the fonts-noto-emoji or so should ship a fontconfig
file that activates it, best with the above.
But I am not running Debian anymore on my main machine, so cannot really
check.
Best
Norbert
--
PREINING Norbert https://www.preining.info
Fujitsu Research + IFMGA Guide + TU Wien + TeX Live
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
Reply to: