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.
This commit is contained in:
Marty Oehme 2025-02-23 13:37:55 +01:00 committed by Marty Oehme
parent b8bc65dfab
commit e3742d43ec
4 changed files with 23 additions and 15 deletions
desktop/.config/fontconfig
multimedia/.config/mpv
qutebrowser/config
terminal/.config/wezterm

View file

@ -11,7 +11,10 @@
</alias>
<alias>
<family>monospace</family>
<prefer><family>Iosevka Nerd Font</family></prefer>
<prefer>
<family>Iosevka Nerd Font</family>
<family>Iosevka</family>
</prefer>
</alias>
<alias>
<family>fantasy</family>

View file

@ -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

View file

@ -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

View file

@ -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" },
}),
},
},