fix(wezterm): use different font for italics

Use Victor Mono font for italic texts

Changed files
+30 -2
wezterm
+30 -2
wezterm/wezterm.lua
··· 1 1 local wezterm = require 'wezterm' 2 2 return { 3 3 font = wezterm.font_with_fallback { 4 - -- 'JetBrains Mono', 5 4 'Fira Code', 6 5 'Menlo', 7 6 'Sarasa Mono K', 8 - -- 'FiraCode Nerd Font', 9 7 'Noto Color Emoji', 10 8 'Symbols Nerd Font Mono', 9 + }, 10 + -- TODO: Issue/PR for only one `italic = true` 11 + font_rules = { 12 + { 13 + italic = true, 14 + intensity = 'Normal', 15 + font = wezterm.font { 16 + -- TODO: buy 'Operator Mono' font someday... 17 + family = 'Victor Mono', 18 + style = 'Italic', 19 + }, 20 + }, 21 + { 22 + italic = true, 23 + intensity = 'Half', 24 + font = wezterm.font { 25 + family = 'Victor Mono', 26 + weight = 'DemiBold', 27 + style = 'Italic', 28 + }, 29 + }, 30 + { 31 + italic = true, 32 + intensity = 'Bold', 33 + font = wezterm.font { 34 + family = 'Victor Mono', 35 + weight = 'Bold', 36 + style = 'Italic', 37 + }, 38 + }, 11 39 }, 12 40 line_height = 1.2, 13 41 allow_square_glyphs_to_overflow_width = "Always",