Skip to content

Instantly share code, notes, and snippets.

@arafathusayn
Last active July 22, 2024 17:23
Show Gist options
  • Save arafathusayn/3d384adfbbdfe0b6a12868e9046e9a23 to your computer and use it in GitHub Desktop.
Save arafathusayn/3d384adfbbdfe0b6a12868e9046e9a23 to your computer and use it in GitHub Desktop.
Guide to enable system-wide Emoji support on Ubuntu 🤩

1. Install Fonts

sudo apt install fonts-noto-color-emoji

2. Add Font Configuration

  • Open ~/.config/fontconfig/conf.d/01-emoji.conf file in an editor.
  • Copy-paste the lines below:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <alias>
    <family>serif</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Noto Color Emoji</family>
    </prefer>
  </alias>
</fontconfig>

3. Flush Font Cache

fc-cache -f -v

4. Restart the programs (e.g. web browsers)

5. Check

  • Visit this link 🧐 to check the emoji list.

6. That's it! 🤗

@arafathusayn
Copy link
Author

@seupedro Thanks.

@abjl7
Copy link

abjl7 commented May 16, 2024

Thank you! Worked on Zorin OS 16.3 too.

@bedantadey17
Copy link

works on arch linux too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment