From e3742d43ec60d99682bcb5e6af5ba6e434ba86cc Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 23 Feb 2025 13:37:55 +0100 Subject: [PATCH] fonts: Fix for Iosevka on Voidlinux Prefer regular 'Iosevka' font in most cases, not the highly specific 'Iosevka Nerd Font'. This may break some things back in Archlinux-land but it is required for iosevka to be correctly displayed in Voidlinux, and, to be honest, also feels more clean than using such a highly specialized font for everything. Additionally, we generally make use of both where possible, defaulting to the more specific 'Nerd Font' family variant but falling back to regular old Iosevka. One exception is 'wezterm' which, though it nicely includes a font fallback option (and a very configurable one at that), _always_ produces a warning when the first font in a fallback list is not found -- even when the specific 'warn_about_missing_glyphs' option is ticked. No clue why but for now this works well enough for me. --- desktop/.config/fontconfig/fonts.conf | 5 ++++- multimedia/.config/mpv/mpv.conf | 2 +- qutebrowser/config/config.py | 4 ++++ terminal/.config/wezterm/wezterm.lua | 27 ++++++++++++++------------- 4 files changed, 23 insertions(+), 15 deletions(-) diff --git a/desktop/.config/fontconfig/fonts.conf b/desktop/.config/fontconfig/fonts.conf index 3dc933d..1fd66d3 100644 --- a/desktop/.config/fontconfig/fonts.conf +++ b/desktop/.config/fontconfig/fonts.conf @@ -11,7 +11,10 @@ monospace - Iosevka Nerd Font + + Iosevka Nerd Font + Iosevka + fantasy diff --git a/multimedia/.config/mpv/mpv.conf b/multimedia/.config/mpv/mpv.conf index 302d642..fd148db 100644 --- a/multimedia/.config/mpv/mpv.conf +++ b/multimedia/.config/mpv/mpv.conf @@ -35,7 +35,7 @@ screenshot-tag-colorspace=yes osc=no osd-bar=no -osd-font='Iosevka Nerd Font' +osd-font='Iosevka' osd-font-size=15 ### Subtitles diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index a2d97ae..6697977 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -75,6 +75,10 @@ c.tabs.show = "multiple" c.tabs.show_switching_delay = 2000 c.statusbar.show = "always" +c.fonts.default_family = "Iosevka" +c.fonts.web.family.fixed = "Iosevka" +c.fonts.web.family.standard = "Iosevka" + c.colors.webpage.bg = "#555555" # Prevents *all* tabs from being loaded on restore, only loads on activating them diff --git a/terminal/.config/wezterm/wezterm.lua b/terminal/.config/wezterm/wezterm.lua index 01ba9a5..eb70a5b 100644 --- a/terminal/.config/wezterm/wezterm.lua +++ b/terminal/.config/wezterm/wezterm.lua @@ -34,33 +34,34 @@ local settings = { color_scheme = "Nord (base16)", -- will be overwritten by colors -- default_prog = {"nu"}, scrollback_lines = 10000, - font = wezterm.font("Iosevka Nerd Font"), + font = wezterm.font_with_fallback({ + { family = "Iosevka", weight = "Regular", italic = false }, + { family = "Iosevka Nerd Font", weight = "Regular", italic = false }, + }), -- add cursive italic font from Victor font for all weights font_rules = { { - intensity = "Bold", italic = true, - font = wezterm.font({ - family = "VictorMono Nerd Font", - weight = "Bold", - style = "Italic", + intensity = "Bold", + font = wezterm.font_with_fallback({ + { family = "Iosevka", weight = "Bold", italic = true }, + { family = "VictorMono Nerd Font", weight = "Bold", style = "Italic" }, }), }, { italic = true, intensity = "Half", - font = wezterm.font({ - family = "VictorMono Nerd Font", - weight = "DemiBold", - style = "Italic", + font = wezterm.font_with_fallback({ + { family = "Iosevka", weight = "DemiBold", italic = true }, + { family = "VictorMono Nerd Font", weight = "DemiBold", style = "Italic" }, }), }, { italic = true, intensity = "Normal", - font = wezterm.font({ - family = "VictorMono Nerd Font", - style = "Italic", + font = wezterm.font_with_fallback({ + { family = "Iosevka", weight = "Bold", italic = true }, + { family = "VictorMono Nerd Font", style = "Italic" }, }), }, },