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:
parent
b9c8239def
commit
ba11cb9782
3 changed files with 35 additions and 3 deletions
|
@ -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
|
||||
|
|
32
.config/fontconfig/fonts.conf
Normal file
32
.config/fontconfig/fonts.conf
Normal 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>
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue