From 5cf6079726a08d3e5ca216e4f2c80af300597b45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Mon, 31 Aug 2026 14:42:27 -0400 Subject: [PATCH] Pick the matching Noto CJK variant for language-tagged text The generic assigns swap sans-serif, serif and monospace for fonts with no CJK glyphs, so tagged Chinese text ends up on whatever Noto CJK variant the charset scan finds first, usually the Japanese one. Fold the many Chinese tags down to one per variant and prepend the matching family ahead of the assigns. --- default/fontconfig/conf.avail/50-omarchy.conf | 307 ++++++++++++++++++ 1 file changed, 307 insertions(+) diff --git a/default/fontconfig/conf.avail/50-omarchy.conf b/default/fontconfig/conf.avail/50-omarchy.conf index eecf66e0..11a37324 100644 --- a/default/fontconfig/conf.avail/50-omarchy.conf +++ b/default/fontconfig/conf.avail/50-omarchy.conf @@ -1,6 +1,313 @@ + + + + + zh + + + zh-cn + + + + + + zh-hant + + + zh-tw + + + + + + zh-hant-hk + + + zh-hk + + + + + + zh-hant-mo + + + zh-hk + + + + + + zh-hant + + + zh-tw + + + + + + zh-hans + + + zh-cn + + + + + + zh-sg + + + zh-cn + + + + + + zh-mo + + + zh-hk + + + + + + yue + + + zh-hk + + + + + + yue-hans + + + zh-cn + + + + + + yue-cn + + + zh-cn + + + + + + yue + + + zh-hk + + + + + + + + + zh-cn + + + sans-serif + + + Noto Sans CJK SC + + + + + + zh-cn + + + serif + + + Noto Serif CJK SC + + + + + + zh-cn + + + monospace + + + Noto Sans Mono CJK SC + + + + + + zh-hk + + + sans-serif + + + Noto Sans CJK HK + + + + + + zh-hk + + + serif + + + Noto Serif CJK HK + + + + + + zh-hk + + + monospace + + + Noto Sans Mono CJK HK + + + + + + zh-tw + + + sans-serif + + + Noto Sans CJK TC + + + + + + zh-tw + + + serif + + + Noto Serif CJK TC + + + + + + zh-tw + + + monospace + + + Noto Sans Mono CJK TC + + + + + + ja + + + sans-serif + + + Noto Sans CJK JP + + + + + + ja + + + serif + + + Noto Serif CJK JP + + + + + + ja + + + monospace + + + Noto Sans Mono CJK JP + + + + + + ko + + + sans-serif + + + Noto Sans CJK KR + + + + + + ko + + + serif + + + Noto Serif CJK KR + + + + + + ko + + + monospace + + + Noto Sans Mono CJK KR + + + sans-serif