How to enable color emoji on Arch Linux with Emoji One Font

This is a short article about how to enable color emoji on Arch Linux. I have searched for a working solution for this a few times but never found something that worked. I stumbled upon this Article that I used make a simple setup script.

First, install ttf-emojione, a package that seems to have been added to the AUR:

trizen -S ttf-emojione

Download noto color emoji font

Download the font (zip file) from https://www.google.com/get/noto/#emoji-zsye-color

Extract NotoColorEmoji.ttf file into ~/.fonts/ (create the folder if it does not exist).

Next, run this script:

# create folders if does not exist
mkdir -p ~/.config/fontconfig/

# create font config file
cat << 'EOF' > ~/.config/fontconfig/fonts.conf
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<match>
 <test name="family"><string>sans-serif</string></test>
 <edit name="family">
 <string>Noto Color Emoji</string>
 </edit>
 </match>
<match>
 <test name="family"><string>serif</string></test>
 <edit name="family">
 <string>Noto Color Emoji</string>
 </edit>
 </match>
<match>
 <test name="family"><string>Apple Color Emoji</string></test>
 <edit name="family">
 <string>Noto Color Emoji</string>
 </edit>
 </match>
EOF
# build font information cache files
fc-cache -f -v