dotfiles/modules/wezterm/fonts.lua

44 lines
832 B
Lua
Raw Normal View History

local wezterm = require("wezterm")
local M = {}
M.get_font = function(name)
2023-01-01 15:36:39 +01:00
-- fonts I like, with the settings I prefer
-- kept seperately from the rest of the config so that I can easily change them
local fonts = {
berkeley = {
font = {
family = "Berkeley Mono",
-- weight = "Bold",
2023-01-01 15:36:39 +01:00
},
size = 16,
},
comic = {
font = "Comic Code Ligatures",
size = 18,
},
fantasque = {
font = "Fantasque Sans Mono",
size = 20,
},
victor = {
font = {
family = "Victor Mono",
weight = "DemiBold",
harfbuzz_features = { "ss02=1" },
},
size = 18,
},
}
2023-01-01 15:36:39 +01:00
return {
font = wezterm.font_with_fallback({
fonts[name].font,
"Symbols Nerd Font",
}),
2023-01-01 15:36:39 +01:00
size = fonts[name].size,
}
end
return M