fix: Choose SC variant of cjk fonts

This commit is contained in:
ulic-youthlic 2026-02-09 22:00:16 +08:00
parent 4bd393b78e
commit 2c8c106aa0
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
8 changed files with 21 additions and 10 deletions

View file

@ -18,7 +18,7 @@
settings = { settings = {
font-family = [ font-family = [
"MonoLisa" "MonoLisa"
"Source Han Sans" "Source Han Sans SC"
]; ];
font-size = lib.mkForce 17; font-size = lib.mkForce 17;
theme = "Atom One Dark"; theme = "Atom One Dark";

View file

@ -159,7 +159,7 @@ in {
settings = cfg.settings; settings = cfg.settings;
style = '' style = ''
* { * {
font-family: Libertinus Serif, Source Han Serif; font-family: Libertinus Serif, Source Han Serif SC;
font-weight: bold; font-weight: bold;
font-size: 16px; font-size: 16px;
} }

View file

@ -31,7 +31,6 @@ in {
"hurl" "hurl"
"idris2" "idris2"
"java" "java"
"java-eclipse-jdtls"
"kdl" "kdl"
"kotlin" "kotlin"
"lua" "lua"
@ -111,9 +110,9 @@ in {
buffer_font_size = 20; buffer_font_size = 20;
buffer_font_family = "MonoLisa"; buffer_font_family = "MonoLisa";
buffer_font_fallback = [ buffer_font_fallback = [
"Source Han Sans" "Source Han Sans SC"
]; ];
ui_font_family = "Source Han Sans"; ui_font_family = "Source Han Sans SC";
theme = "Catppuccin Latte"; theme = "Catppuccin Latte";
helix_mode = true; helix_mode = true;
}; };

View file

@ -39,6 +39,18 @@ in {
fish_greeting = { fish_greeting = {
body = ''''; body = '''';
}; };
nani = {
body =
# fish
''
for command in $argv
echo "$command:"
for path in $(which --all "$command" 2>/dev/null)
realpath $path
end
end
'';
};
}; };
shellInitLast = shellInitLast =
# fish # fish

View file

@ -20,7 +20,7 @@
}; };
sansSerif = { sansSerif = {
package = pkgs.source-han-sans; package = pkgs.source-han-sans;
name = "Source Han Sans"; name = "Source Han Sans SC";
}; };
monospace = { monospace = {
package = pkgs.maple-mono.NF-CN; package = pkgs.maple-mono.NF-CN;

View file

@ -20,7 +20,7 @@
}; };
sansSerif = { sansSerif = {
package = pkgs.source-han-sans; package = pkgs.source-han-sans;
name = "Source Han Sans"; name = "Source Han Sans SC";
}; };
monospace = { monospace = {
package = pkgs.maple-mono.NF-CN; package = pkgs.maple-mono.NF-CN;

View file

@ -71,11 +71,11 @@ in {
defaultFonts = { defaultFonts = {
serif = [ serif = [
"Libertinus Serif" "Libertinus Serif"
"Source Han Serif" "Source Han Serif SC"
"Noto Serif CJK SC" "Noto Serif CJK SC"
]; ];
sansSerif = [ sansSerif = [
"Source Han Sans" "Source Han Sans SC"
"Noto Sans CJK SC" "Noto Sans CJK SC"
]; ];
monospace = [ monospace = [

View file

@ -3,7 +3,7 @@
#lua #lua
'' ''
if vim.g.neovide then if vim.g.neovide then
vim.o.guifont = [[MonoLisa,Source Han Sans,Noto Color Emoji:h16]] vim.o.guifont = [[MonoLisa,Source Han Sans SC,Noto Color Emoji:h16]]
vim.g.neovide_opacity = 0.9 vim.g.neovide_opacity = 0.9
vim.g.linespace = 0.2 vim.g.linespace = 0.2
vim.g.neovide_text_gamma = 0.8 vim.g.neovide_text_gamma = 0.8