From e94be82738d54c84ba21836c919055f59f725333 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 8 Jan 2010 10:46:22 +0900 Subject: [PATCH] international/fontset.el (build-default-fontset-data): Exclude characters in scripts kana, hangul, han, or cjk-misc. --- lisp/ChangeLog | 5 +++++ lisp/international/fontset.el | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e64fa66c490..ccafaf81928 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-01-08 Kenichi Handa + + * international/fontset.el (build-default-fontset-data): Exclude + characters in scripts kana, hangul, han, or cjk-misc. + 2010-01-06 Jan Djärv * font-setting.el (font-setting-change-default-font): Use user-spec diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el index 9b4a5d59ed4..1b45512fad6 100644 --- a/lisp/international/fontset.el +++ b/lisp/international/fontset.el @@ -361,8 +361,10 @@ (let ((from (car range)) (to (cdr range))) (if (< to #x110000) (while (<= from to) - (aset cjk-table from - (logior (or (aref cjk-table from) 0) mask)) + (or (memq (aref char-script-table from) + '(kana hangul han cjk-misc)) + (aset cjk-table from + (logior (or (aref cjk-table from) 0) mask))) (setq from (1+ from)))))) (nth 1 elt) nil (nth 2 elt) (nth 3 elt))) (setq i (1+ i))) -- 2.39.2