Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save n4n0GH/5e09a1ded88a822201034336d6a6a29d to your computer and use it in GitHub Desktop.
Save n4n0GH/5e09a1ded88a822201034336d6a6a29d 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.
Currently the only Terminal Emulator I'm aware that supports colour fonts is Konsole.
Usage:
0. Ensure that the Noto fonts are installed on your machine.
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" as the font.
4. Restart Konsole.
-->
<fontconfig>
<match>
<test name="family"><string>monospace</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>
@n4n0GH
Copy link
Author

n4n0GH commented Oct 13, 2019

Script checks agains any monospace font and uses Noto Color Emoji font to display all emojis.

@n4n0GH
Copy link
Author

n4n0GH commented Oct 14, 2019

Note that this means it'll replace anything that could be an Emoji in every application, possibly rendering <code> tags on websites impossible to read.

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