wezterm: Add cursive italics
Set up wezterm to continue to use Iosevka for everything *except* italics (in all weights) which will instead be displayed by the Victor font. This ultimately results in cursive fonts for italics and Iosevka for everything else, very pretty.
This commit is contained in:
parent
36d411dafa
commit
a16e0eead7
2 changed files with 31 additions and 1 deletions
|
|
@ -36,6 +36,35 @@ local settings = {
|
|||
-- default_prog = {"nu"},
|
||||
scrollback_lines = 10000,
|
||||
font = wezterm.font('Iosevka Nerd Font'),
|
||||
-- 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',
|
||||
},
|
||||
},
|
||||
{
|
||||
italic = true,
|
||||
intensity = 'Half',
|
||||
font = wezterm.font {
|
||||
family = 'VictorMono Nerd Font',
|
||||
weight = 'DemiBold',
|
||||
style = 'Italic',
|
||||
},
|
||||
},
|
||||
{
|
||||
italic = true,
|
||||
intensity = 'Normal',
|
||||
font = wezterm.font {
|
||||
family = 'VictorMono Nerd Font',
|
||||
style = 'Italic',
|
||||
},
|
||||
},
|
||||
},
|
||||
line_height = 1.0,
|
||||
leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1500 },
|
||||
keys = maps.keys,
|
||||
|
|
@ -45,7 +74,7 @@ local settings = {
|
|||
event = { Up = { streak = 1, button = 'Left' } },
|
||||
mods = 'NONE',
|
||||
action = wezterm.action
|
||||
.CompleteSelectionOrOpenLinkAtMouseCursor 'ClipboardAndPrimarySelection'
|
||||
.CompleteSelectionOrOpenLinkAtMouseCursor 'ClipboardAndPrimarySelection'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue