Skip to content

Instantly share code, notes, and snippets.

@arafathusayn
Last active April 15, 2024 08:44
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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! 🤗

@pkkid
Copy link

pkkid commented Feb 28, 2024

This is still working great on Ubuntu 24.04, thanks!

@arafathusayn
Copy link
Author

@pkkid You're welcome. I updated the broken link at step 5 with an archived version so the link is now working as well.

@seupedro
Copy link

seupedro commented Mar 3, 2024

I create a gist to facilitate the testing. You can test like this:

curl https://gist.githubusercontent.com/seupedro/6c569a59aefc2023d7767e229f90ff96/raw/486c2a57ff7b7cb733cedf0445158346438fc93c/emoiji-list-15-unicode-single-line.txt

@arafathusayn
Copy link
Author

@seupedro Thanks.

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