build: update font handling to include multiple font fallbacks

This commit is contained in:
2024-08-23 09:44:15 -04:00
parent 47fc5ccbc8
commit 6ee0545f95
+29 -4
View File
@@ -3,10 +3,16 @@
-- ╰─────────────────────────────────────────────────────────╯ -- ╰─────────────────────────────────────────────────────────╯
return { return {
-- Terminal Font Size
font_size = 12.0,
-- Terminal Font -- Terminal Font
font = WEZTERM.font({ font = WEZTERM.font_with_fallback({
{
-- Font Family
family = "Iosevka", family = "Iosevka",
-- Font Weight
weight = "Regular", weight = "Regular",
-- Character Varients and Ligatures
harfbuzz_features = { harfbuzz_features = {
"VSAH=7", "VSAH=7",
"VSAF=3", "VSAF=3",
@@ -19,13 +25,22 @@ return {
"cv44=6", "cv44=6",
"cv07=4", "cv07=4",
}, },
},
"Symbols Nerd Font",
"Symbols Nerd Font Mono",
"VictorMono Nerd Font",
"MonaspaceKrypton Nerd Font",
"Roboto",
"Cascadia Code",
}), }),
font_size = 12.0, -- Tab Font
-- Fancy Tab Bar Font
window_frame = { window_frame = {
font = WEZTERM.font({ font = WEZTERM.font({
-- Tab Font Family
family = "Iosevka", family = "Iosevka",
-- Tab Font Weight
weight = "Medium", weight = "Medium",
-- Character Varients and Ligatures
harfbuzz_features = { harfbuzz_features = {
"VSAH=7", "VSAH=7",
"VSAF=3", "VSAF=3",
@@ -39,8 +54,18 @@ return {
"cv07=4", "cv07=4",
}, },
}), }),
-- Tab Font Size
font_size = 11, font_size = 11,
}, },
-- Cursor Shape -- Cell Width
cell_width = 1.0,
-- ANSI Colors
bold_brightens_ansi_colors = "BrightAndBold",
-- FreeType Load Flags
freetype_load_flags = "DEFAULT",
-- FreeType Load Target
freetype_load_target = "Normal",
-- Default Cursor Shape
default_cursor_style = "BlinkingBar", default_cursor_style = "BlinkingBar",
-- Fallback Fonts
} }