From b19ee82d31f819acad7c55581b94273da37f25a1 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Thu, 25 Jan 2024 04:14:31 +0800 Subject: [PATCH] nixos: source-han-{sans,serif} -> source-han-{sans,serif}-vf-otf Steam Beta has updated embedded Chromium build to 109.0.5414.120, now it supports rendering variable fonts. --- .../common/graphical/home/fonts/default.nix | 7 +- .../home/fonts/fontconfig/fonts.conf | 209 +----------------- 2 files changed, 10 insertions(+), 206 deletions(-) diff --git a/nixos/profiles/common/graphical/home/fonts/default.nix b/nixos/profiles/common/graphical/home/fonts/default.nix index 1f753f1..94d3cb4 100644 --- a/nixos/profiles/common/graphical/home/fonts/default.nix +++ b/nixos/profiles/common/graphical/home/fonts/default.nix @@ -45,8 +45,11 @@ (nerdfonts.override {fonts = ["JetBrainsMono"];}) ### Adobe Source Han - source-han-sans - source-han-serif + # The reason I use Source Han instead of Noto CJK, + # is because I heard from #archlinux-cn, Adobe packages font better. + # You can 100% use noto-fonts-cjk-{sans,serif} if you prefer consistency/other reason. + source-han-sans-vf-otf + source-han-serif-vf-otf source-han-mono ### Noto Fonts diff --git a/nixos/profiles/common/graphical/home/fonts/fontconfig/fonts.conf b/nixos/profiles/common/graphical/home/fonts/fontconfig/fonts.conf index 09f41ad..b642802 100644 --- a/nixos/profiles/common/graphical/home/fonts/fontconfig/fonts.conf +++ b/nixos/profiles/common/graphical/home/fonts/fontconfig/fonts.conf @@ -32,7 +32,7 @@ serif - Source Han Serif SC + Source Han Serif SC VF sans-serif @@ -52,218 +52,19 @@ serif - Source Han Serif SC + Source Han Serif SC VF sans-serif - Source Han Sans SC + Source Han Sans SC VF monospace - Source Han Mono SC + Source Han Mono SC VF system-ui - Source Han Sans SC - - - - - - zh - serif - Source Han Serif SC - - - zh - sans-serif - Source Han Sans SC - - - zh - monospace - Source Han Mono SC - - - zh - system-ui - Source Han Sans SC - - - - - - zh-hans - serif - Source Han Serif SC - - - zh-hans - sans-serif - Source Han Sans SC - - - zh-hans - monospace - Source Han Mono SC - - - zh-hans - system-ui - Source Han Sans SC - - - - zh-hant - serif - Source Han Serif TC - - - zh-hant - sans-serif - Source Han Sans TC - - - zh-hant - monospace - Source Han Mono TC - - - zh-hant - system-ui - Source Han Sans TC - - - - zh-hant - serif - Source Han Serif HC - - - zh-hant - sans-serif - Source Han Sans HC - - - zh-hant - monospace - Source Han Mono HC - - - zh-hant - system-ui - Source Han Sans HC - - - - - - zh-cn - serif - Source Han Serif SC - - - zh-cn - sans-serif - Source Han Sans SC - - - zh-cn - monospace - Source Han Mono SC - - - zh-cn - system-ui - Source Han Sans SC - - - - zh-tw - serif - Source Han Serif TC - - - zh-tw - sans-serif - Source Han Sans TC - - - zh-tw - monospace - Source Han Mono TC - - - zh-tw - system-ui - Source Han Sans TC - - - - zh-hk - serif - Source Han Serif HC - - - zh-hk - sans-serif - Source Han Sans HC - - - zh-hk - monospace - Source Han Mono HC - - - zh-hk - system-ui - Source Han Sans HC - - - - - - ja - serif - Source Han Serif - - - ja - sans-serif - Source Han Sans - - - ja - monospace - Source Han Mono - - - ja - system-ui - Source Han Sans - - - - - - ko - serif - Source Han Serif K - - - ko - sans-serif - Source Han Sans K - - - ko - monospace - Source Han Mono K - - - ko - system-ui - Source Han Sans K + Source Han Sans SC VF