Set up font fallthrough for emoji

We set up a fonts.conf to specify Bitstream Vera for all my font
preferences with a fallback to the Noto Color Emoji. This should
standardize font/emoji support and my method falls back to system
fontconfig if these aren't font.

Then we swap alacritty and sway to monospace.
This commit is contained in:
Trysdyn Black 2022-10-21 23:23:24 -07:00
parent b9c8239def
commit ba11cb9782
3 changed files with 35 additions and 3 deletions

View file

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<!-- $XDG_CONFIG_HOME/fontconfig/fonts.conf for per-user font configuration -->
<fontconfig>
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>Bitstream Vera Sans</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend">
<string>Bitstream Vera Serif</string>
<string>Noto Color Emoji</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend">
<string>Bitstream Vera Sans Mono</string>
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>