Bug 428074

Summary: Emoji selector square emojis
Product: [Plasma] plasmashell Reporter: medin <med.medin.2014>
Component: Emoji SelectorAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 5.19.5   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Emoji selector square emojis

Description medin 2020-10-21 20:40:25 UTC
Created attachment 132619 [details]
Emoji selector square emojis

I have both noto-fonts and noto-fonts-emoji packages installed but when I launch Emoji Selector I see some squares. See attached image for more info.

Operating System: Manjaro Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.4.72-1-MANJARO
OS Type: 64-bit
Comment 1 David Edmundson 2020-10-25 23:51:55 UTC
Setup issue.

See the arch wiki on emojis, you might need fontconfig changes.
Comment 2 medin 2020-10-25 23:58:43 UTC
It's was working, only after latest update it stopped working.
Comment 3 medin 2020-10-26 11:04:41 UTC
(In reply to David Edmundson from comment #1)
> Setup issue.
> 
> See the arch wiki on emojis, you might need fontconfig changes.

Sorry, you are right, I searched how to add emoji font config file and found that I should create a new file called local.conf inside /etc.fonts folder with current content:

<?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>
   </prefer>
 </alias>
</fontconfig>

And after running fc-cache -fv the emoji selector works again.
Thanks for the info :)