From f2b2bed34a14c5187510be699c70d3fd172c2512 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 17 Nov 2020 10:46:01 +0530 Subject: [PATCH] fontconfig: Set up fallback fonts In case a glyph is absent in the default font, st uses font-config and tries to find them in font cache first. This also seems to work for all VTE terminals. However, alacritty relies on system configuration and does not do the above. To fix this, we need specify a fallback font manually. This also seems good practice in general otherwise. For reference, see the below links. https://st.suckless.org/patches/font2/ https://github.com/alacritty/alacritty/issues/3690 https://wiki.archlinux.org/index.php/Fonts#Fallback_font_order https://eev.ee/blog/2015/05/20/i-stared-into-the-fontconfig-and-the-fontconfig-stared-back-at-me/ Also our use of galaxyline plugin for neovim requires nvim-web-devicons which in turn requires a patched font like Nerd font. --- fontconfig/.config/fontconfig/fonts.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 fontconfig/.config/fontconfig/fonts.conf diff --git a/fontconfig/.config/fontconfig/fonts.conf b/fontconfig/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..9441e6e --- /dev/null +++ b/fontconfig/.config/fontconfig/fonts.conf @@ -0,0 +1,18 @@ + + + + + JetBrains Mono + + monospace + + + + monospace + + JetBrains Mono + TerminessTTF Nerd Font + + + +