]> git.eshelyaron.com Git - emacs.git/commitdiff
Better resolve bug#72188
authorPo Lu <luangruo@yahoo.com>
Thu, 1 Aug 2024 00:23:36 +0000 (08:23 +0800)
committerEshel Yaron <me@eshelyaron.com>
Fri, 2 Aug 2024 09:56:58 +0000 (11:56 +0200)
* 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)

(cherry picked from commit 1154d8aafe2f4702b8fc775835f830fd00cfbaaf)

lisp/international/fontset.el

index d4e24899d1160924663696eef0b98efbbae02e2b..3e16e1f35bd0296b2e3ec4b310c96ce1b6604d6a 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*")