Better resolve bug#72188
authorPo Lu <luangruo@yahoo.com>
Thu, 1 Aug 2024 00:23:36 +0000 (08:23 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 1 Aug 2024 00:23:36 +0000 (08:23 +0800)
* lisp/international/fontset.el (setup-default-fontset) <han>:
Don't search for fonts matching the `han' script elsewhere than
on Android, which restores the status quo existing in Emacs 29.
(bug#72188)

lisp/international/fontset.el

index 33e444507c45964a0000dd4d2a68984ce76c3977..d60349e05e3ac8ef07faf24bfbcfee88f2f0e7bb 100644 (file)
          (nil . "JISX0213.2004-1")
          ,(font-spec :registry "iso10646-1" :lang 'ja)
          ,(font-spec :registry "iso10646-1" :lang 'zh)
-          ;; 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 'han))
+          ;; This is required on Android, as otherwise many TrueType
+          ;; fonts with CJK characters but no corresponding ``design
+          ;; language'' declaration can't be found.
+          ,@(and (featurep 'android)
+                 (list (font-spec :registry "iso10646-1" :script 'han))))
 
      (cjk-misc (nil . "GB2312.1980-0")
               (nil . "JISX0208*")