From 32068c288e7f7ed5e2001ec298935be7e43d9f9a Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Wed, 27 Aug 2025 21:01:16 +0200 Subject: [PATCH] Add CN fonts fallback --- config/fonts.nix | 5 +++++ modules/ghostty.nix | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/fonts.nix b/config/fonts.nix index 87f6ae0..69fa534 100644 --- a/config/fonts.nix +++ b/config/fonts.nix @@ -9,6 +9,11 @@ # Nerd Fonts with programming ligatures and icon support nerd-fonts.fira-code nerd-fonts.jetbrains-mono + + # CJK fonts for proper Chinese/Japanese/Korean character display + noto-fonts-cjk-sans # Comprehensive CJK support + noto-fonts-cjk-serif # Serif CJK text support + source-han-sans # High-quality CJK font alternative ]; # Enable font configuration diff --git a/modules/ghostty.nix b/modules/ghostty.nix index 57729f9..8a2656a 100644 --- a/modules/ghostty.nix +++ b/modules/ghostty.nix @@ -12,8 +12,13 @@ package = null; # Use system-installed Ghostty settings = { - # Font settings - font-family = "JetBrainsMono Nerd Font Mono"; + # Font settings with CJK fallback + font-family = [ + "JetBrainsMono Nerd Font Mono" # Primary font for Latin + symbols + "Noto Sans CJK SC" # Simplified Chinese fallback + "Noto Sans CJK TC" # Traditional Chinese fallback + "Source Han Sans" # Alternative CJK fallback + ]; font-size = 14; # Gruvbox Dark Theme (matching tmux theme)