From ff224faf21b0f0bba3236b106a359f691852de49 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 5 Aug 2024 09:34:11 +0800 Subject: [PATCH] Also condition cjk-misc font-spec on Android * lisp/international/fontset.el (setup-default-fontset) : Don't search for matching scripts elsewhere than on Android. (cherry picked from commit 1c7e00f4f653cf3d30006cefe6568227dcb91c60) --- lisp/international/fontset.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index c9b60418b22..a4456d31cf9 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el @@ -726,7 +726,9 @@ ;; This is required, as otherwise many TrueType fonts ;; with CJK characters but no corresponding ``design ;; language'' declaration can't be found. - ,(font-spec :registry "iso10646-1" :script 'cjk-misc)) + ,@(and (featurep 'android) + (list (font-spec :registry "iso10646-1" + :script 'cjk-misc)))) (hangul (nil . "KSC5601.1987-0") ,(font-spec :registry "iso10646-1" :lang 'ko)) -- 2.39.2