Files
dotfiles/.config/wezterm/fonts.lua
T
Oscar Wallberg 9da2a6b053 Revert "feat(fonts): remove nerd font"
This reverts commit 1063c3351d.
2025-04-29 09:44:59 +02:00

54 lines
1019 B
Lua

local wezterm = require("wezterm")
local fonts = {}
local family = "Iosevka Custom"
-- Automatically includes fallback for nerd font symbols,
-- so it doesn't require a patched font.
fonts.regular = wezterm.font({
family = family,
weight = "Regular",
stretch = "Normal",
style = "Normal"
})
fonts.italic = wezterm.font({
family = family,
weight = "Regular",
stretch = "Normal",
style = "Italic"
})
fonts.bold = wezterm.font({
family = family,
weight = "Bold",
stretch = "Normal",
style = "Normal"
})
fonts.bolditalic = wezterm.font({
family = family,
weight = "Bold",
stretch = "Normal",
style = "Italic"
})
fonts.rules = {
italic = {
intensity = "Normal",
italic = true,
font = fonts.italic
},
bold = {
intensity = "Bold",
italic = false,
font = fonts.bold
},
bolditalic = {
intensity = "Bold",
italic = true,
font = fonts.bolditalic
},
}
return fonts