Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yzhernand/10bc8824e1018a4e7709c73b6c33bc01 to your computer and use it in GitHub Desktop.
Save yzhernand/10bc8824e1018a4e7709c73b6c33bc01 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.
This config seems to ensure that *all* monospace fonts are affected without breaking
<code> blocks elsewhere. The significant change appears to be setting binding="weak"
on line 22.
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="append_last" binding="weak">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>
@StephaneTrebel
Copy link

StephaneTrebel commented Nov 10, 2023

Awesome, this works fine on my Ubuntu 22 LTS 👌

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