From 2b799d4388f6f59020becb7a4dceecfcaa5446aa 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, 24 Aug 2026 19:35:01 -0400 Subject: [PATCH] Font status: assert untagged CJK fallback reaches SC Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- bin/omarchy-cn-font-status | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/omarchy-cn-font-status b/bin/omarchy-cn-font-status index e51a0c91..f70a0847 100755 --- a/bin/omarchy-cn-font-status +++ b/bin/omarchy-cn-font-status @@ -24,4 +24,13 @@ else failures=$((failures + 1)) fi +# Untagged requests (Chromium/Electron path) must reach SC before JP/KR +untagged=$(fc-match --sort sans-serif | grep -m1 -oE 'CJK (SC|JP|TC|KR|HK)' || true) +if [[ $untagged == "CJK SC" ]]; then + echo "PASS fallback: untagged CJK -> SC" +else + echo "FAIL fallback: untagged CJK -> ${untagged:-none} (expected SC)" + failures=$((failures + 1)) +fi + exit $((failures > 0 ? 1 : 0))