Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.26 KB

TROUBLESHOOTING.md

File metadata and controls

41 lines (35 loc) · 1.26 KB

Troubleshooting

Non-color emojis being displayed in some apps

It can happen that after the installation, some programs display a mixture of non-color and color (WhatsApp) emojis, e.g.:

Building

A way to solve this can be the following. First, ensure that the necessary directories exist with mkdir -p ~/.config/fontconfig/conf.d. Then, create the file ~/.config/fontconfig/conf.d/01-emoji.conf with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>serif</family>
    <prefer>
      <family>Apple Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Apple Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Apple Color Emoji</family>
    </prefer>
  </alias>
</fontconfig>

(Why Apple Color Emoji?)

Save the file and refresh the font cache with fc-cache -f -v. Don't forget to reopen any previously opened programs so that changes take effect.