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

@ -117,7 +117,7 @@ font:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
family: DejaVu Sans Mono
family: monospace
# The `style` can be specified to pick a specific face.
#style: Regular

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>

View file

@ -19,7 +19,7 @@ set $base0F #a16946
# %%base16_template_end%%
# Global font config
font pango:DejaVu Sans Mono 11
font pango:monospace 11
# Property Name Border BG Text Indicator Child Border
client.focused $base00 $base02 $base05 $base0D $base02
@ -38,7 +38,7 @@ bar {
status_command "~/bin/statusbar"
position bottom
font pango:DejaVu Sans Mono 11
font pango:monospace 11
colors {
background $base00