Emojis on Debian (& Raspbian)

The definite way to enable up to date colored emojis on Debian or Raspbian 🏆
2020-10-02

Tired of reading random blog post to figure out how to have working colored emojis that tells you to fetching pirated fonts?

Here’s yet another one, that doesn’t involve pirated fonts!

Install

To enable colored emojis (including non-BMP ones) on Debian or Raspbian or older Ubuntu:

mkdir -p ~/.fonts
wget -O ~/.fonts/NotoColorEmoji.ttf https://github.com/googlefonts/noto-emoji/raw/master/fonts/NotoColorEmoji.ttf
fc-cache -f -v

This is somewhat the equivalent of running:

sudo apt install fonts-noto-color-emoji

albeit this package potentially has much older font (thus lacks recent emojis). On Raspbian Buster the file is 7Mb while as of October 2020, it is 10Mb in the github repository so there’s a lot of missing code points!

Prerendered

github.com/googlefonts/noto-emoji contains pre-rendered PNGs so you can get the PNG of a single code point with (using lower case hex):

https://github.com/googlefonts/noto-emoji/raw/master/png/128/emoji_u<codepoint>.png

For example: github.com/googlefonts/noto-emoji/raw/master/png/128/emoji_u1f4a9.png

Enjoy 🎉 !