Last active
June 24, 2018 10:00
-
-
Save probil/36dd02d6c9d8446f027aaafb1728a0f3 to your computer and use it in GitHub Desktop.
Enable Color Emoji for Linux (any program, including browsers and terminal)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match> | |
<test name="family"><string>monospace</string></test> | |
<edit name="family" mode="prepend" binding="weak"> | |
<string>Noto Color Emoji</string> | |
</edit> | |
</match> | |
<match> | |
<test name="family"><string>sans-serif</string></test> | |
<edit name="family" mode="prepend" binding="weak"> | |
<string>Noto Color Emoji</string> | |
</edit> | |
</match> | |
<match> | |
<test name="family"><string>serif</string></test> | |
<edit name="family" mode="prepend" binding="weak"> | |
<string>Noto Color Emoji</string> | |
</edit> | |
</match> | |
<match> | |
<test name="family"><string>Apple Color Emoji</string></test> | |
<edit name="family" mode="prepend" binding="weak"> | |
<string>Noto Color Emoji</string> | |
</edit> | |
</match> | |
</fontconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script will help you setup emoji support in all the programs including browsers, terminal, etc | |
# install Noto Font | |
pacman -S noto-fonts-emoji # for arch-based | |
apt-get install fonts-noto-color-emoji # for ubuntu | |
# copy config from this gist your profile config directory | |
cp 10-emoji.conf $XDG_CONFIG_HOME/fontconfig/conf.d/10-emoji.conf | |
# regenerate font cache | |
fc-cache -f -v | |
# open this url in your browser | |
https://eosrei.github.io/emojione-color-font/full-demo.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment