Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save falloutphil/919c3340062c20bc497dd99af36e58e1 to your computer and use it in GitHub Desktop.
Save falloutphil/919c3340062c20bc497dd99af36e58e1 to your computer and use it in GitHub Desktop.
Noto Emoji Color fontconfig for Konsole
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
Noto Mono + Color Emoji Font Configuration for KDE/Konsole
Konsole/KDE apps use QT rather than the GTK emoji setup. So standard Ubuntu setup doesn't seem to work.
https://bugs.launchpad.net/ubuntu/+source/kubuntu-meta/+bug/1767390
If you want the Snake emoji in your Python venv Powerline then see below!
Usage:
0. Ensure that the Noto fonts are installed on your machine.
sudo apt-get install fonts-noto-color-emoji
FYI only - installing powerline fonts via apt-get doesn't seem to work, so instead manually install the font as per below (sudo apt-get install fonts-powerline)
"Download" and run with KFontView to install:
https://github.com/powerline/fonts/blob/master/NotoMono/Noto%20Mono%20for%20Powerline.ttf
1. Install this file to ~/.config/fontconfig/conf.d/99-noto-mono-color-emoji.conf
2. Run `fc-cache`
3. Set Konsole to use "Noto Mono for Powerline" as the font.
4. Restart Konsole.
5. Test by cat'ing this:
https://invent.kde.org/utilities/konsole/-/blob/930594bf9446568280b04992d7db67aba4701e63/tests/emoji_test.txt
Or see if this snake is shown: 🐍
-->
<fontconfig>
<match>
<test name="family"><string>Noto Mono for Powerline</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment