diff --git a/home/base/desktop/terminal/wezterm.nix b/home/base/desktop/terminal/wezterm.nix index b378a5be..abd59c06 100644 --- a/home/base/desktop/terminal/wezterm.nix +++ b/home/base/desktop/terminal/wezterm.nix @@ -49,7 +49,15 @@ -- This is where you actually apply your config choices config.color_scheme = "Catppuccin Mocha" - config.font = wezterm.font("JetBrainsMono Nerd Font") + config.font = wezterm.font_with_fallback { + "JetBrainsMono Nerd Font", + "FiraCode Nerd Font", + + -- To avoid 'Chinese characters displayed as variant (Japanese) glyphs' + "Source Han Sans SC", + "Source Han Sans TC" + } + config.hide_tab_bar_if_only_one_tab = true config.scrollback_lines = 10000 config.enable_scroll_bar = true diff --git a/modules/darwin/system.nix b/modules/darwin/system.nix index 3508d048..226fd5fa 100644 --- a/modules/darwin/system.nix +++ b/modules/darwin/system.nix @@ -163,6 +163,12 @@ material-design-icons font-awesome + # 思源系列字体是 Adobe 主导的。其中汉字部分被称为「思源黑体」和「思源宋体」,是由 Adobe + Google 共同开发的 + source-sans # 无衬线字体,不含汉字。字族名叫 Source Sans 3 和 Source Sans Pro,以及带字重的变体,加上 Source Sans 3 VF + source-serif # 衬线字体,不含汉字。字族名叫 Source Code Pro,以及带字重的变体 + source-han-sans # 思源黑体 + source-han-serif # 思源宋体 + # nerdfonts (nerdfonts.override { fonts = [