From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ynyaaa@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#39482: 26.3; set-fontset-font with emacs charset does not work correctly Date: Sat, 08 Feb 2020 00:11:23 +0900 Message-ID: <86imki4elg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="89410"; mail-complaints-to="usenet@ciao.gmane.io" To: 39482@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 07 16:15:13 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j05Lc-000N7y-Nf for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Feb 2020 16:15:12 +0100 Original-Received: from localhost ([::1]:59206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j05Lb-0008MI-MR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Feb 2020 10:15:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35794) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j05IZ-0002yw-Tj for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:12:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j05IY-0004cj-I4 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j05IY-0004cf-Du for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j05IY-0006a1-8K for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ynyaaa@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Feb 2020 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39482 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158108829525249 (code B ref -1); Fri, 07 Feb 2020 15:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Feb 2020 15:11:35 +0000 Original-Received: from localhost ([127.0.0.1]:50125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j05I7-0006ZA-64 for submit@debbugs.gnu.org; Fri, 07 Feb 2020 10:11:35 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j05I5-0006Z2-6m for submit@debbugs.gnu.org; Fri, 07 Feb 2020 10:11:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35591) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j05I3-0002Be-N0 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:11:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j05I2-0003ap-7q for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:11:31 -0500 Original-Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]:54577) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j05I2-0003WV-1I for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 10:11:30 -0500 Original-Received: by mail-pj1-x102e.google.com with SMTP id dw13so1044130pjb.4 for ; Fri, 07 Feb 2020 07:11:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=eh38zLXu0hvRR6rTT9EZwdsct95X8b77UdXJZcnBThk=; b=F0R9CvN5K9y7jCfPI1rCWnbFaIDiTOiEyILdH+MdEyamBOo6cTh1TJTnJS8JUCSTh/ 8EGiDBpFmGHAyXFxSaOEGbm2KnJnV4iv0WJbfpdh+8LSiVp8DGwSVTxg6SWb+JOQev0U LqV7EvMolaQP4I+Pxp7zuAM5NwUz1AhIlrvIBcgrYvqRrmMG52ZgMnh7Tx37HylTaQ0A pzPQlOePxT6Aujx/geDmyiWLnQ1BjSkgxRZUd/5Y5+2XW2B16fBX1NEZzV1kKTZkm8mK uVlM+ooBeM2Y6ZU8x/cWiH7wZLVJYMtZPGEHcGk03Cxb5kspaAzEJVstAJLWSkqB7mx8 zYNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=eh38zLXu0hvRR6rTT9EZwdsct95X8b77UdXJZcnBThk=; b=rfXOwbb7LZajPdUTkcs4VOvoWscw0Zi0k+xmVr9Zmy5xHcVRQgtkKCG8YpdX6s+MI/ mxG9JgfUlOlOeKqpZARqV31TVbha0JwUMnCR1n50GjmwTc7BfJDMCPvhCYhDRMC7K9c7 fLESWwSTnEBNCwWkRaDcTIMizew1fJkDWc7K2fsG4vq6nxZbmgKpw7K4C6zn0MOZx5Uj jlhTnRdjbQLkv3sa4+Dakzs/cz50wkW4fgIgxgPfZ++WnpguYn9av6oHMKzwp/cHUKhl RaDHyf4Qm2G2EcEcmwFF8KIzK0bdv7Y+fogreWs3v945dV5Uf3hgfLAtVVVaEkvYBObr SnzA== X-Gm-Message-State: APjAAAU6RHpxHqeZIsN6t06Hy8bS77IzU95WAF0vHe/hkFFAVmEwIIA+ FC3sYt9c6ECrsq99ihRQNICnEizP X-Google-Smtp-Source: APXvYqyPrKQmIermPkAvGesKiykhTN5OLfycvtwONz5dCU0BQGAFczwjY795ef0UviOBqYnCYYyy+g== X-Received: by 2002:a17:90a:8042:: with SMTP id e2mr4420245pjw.16.1581088288265; Fri, 07 Feb 2020 07:11:28 -0800 (PST) Original-Received: from HP (east42-p111.eaccess.hi-ho.ne.jp. [219.121.173.112]) by smtp.gmail.com with ESMTPSA id t8sm2981777pjy.20.2020.02.07.07.11.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Feb 2020 07:11:27 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175750 Archived-At: I tried to setup fontset to display a same character with different 'charset text property using different fonts. (let* ((base "Courier New") (size 18) (un-spec "SimHei") (tc-spec '("MingLiU" . "big5")) (sc-spec '("SimSun" . "gb2312.1980")) (jp-spec '("MS Mincho" . "jisx0208")) (kr-spec '("BatangChe" . "ksc5601.1987")) ) (set-charset-priority 'ascii) (set-frame-font (format "%s-%g" base size t)) (set-frame-size nil 80 28) (set-fontset-font t '(#x80 . #x10FFFF) un-spec) (set-fontset-font t 'chinese-gb2312 sc-spec nil 'append) (set-fontset-font t 'big5 tc-spec nil 'append) (set-fontset-font t 'japanese-jisx0208 jp-spec nil 'append) (set-fontset-font t 'korean-ksc5601 kr-spec nil 'append) ) But some characters are not displayed with specified fonts. CJK Ideographs are displayed as intended: M-x list-charset-chars RET unicode-bmp RET CJK Ideographs are displayed with SimHei. M-x list-charset-chars RET big5 RET CJK Ideographs are displayed with MingLiU. CJK Ideographs are not displayed as intended: M-x list-charset-chars RET chinese-gb2312 RET CJK Ideographs are displayed with SimSun except for =E5=95=8A=E7=88=B1=E7=BD=A2=E5=B8=AE=E9=80=BC=E5=BD=BC=E8=94=BD=E5=BA= =87=E8=BE=9F=E8=BE=A9...(and more). They are displayed with SimHei. M-x list-charset-chars RET japanese-jisx0208 RET CJK Ideographs are displayed with "MS Mincho" except for =E4=BA=9C=E6=84=9B=E6=8C=A8=E8=8A=A6=E6=8C=89=E5=81=89=E6=A4=85=E7=82= =BA=E7=A8=B2=E8=94=AD...(and more). They are displayed with SimHei. M-x list-charset-chars RET korean-ksc5601 RET CJK Ideographs are displayed with SimHei, not the intended font. CJK Compatibility Ideographs are not displayed. In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 built on CIRROCUMULUS Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor 'Microsoft Corp.', version 10.0.18363 Recent messages: Configured using: 'configure --without-dbus --host=3Dx86_64-w64-mingw32 --without-compress-install 'CFLAGS=3D-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/bobcat elec-pair time-date mule-util japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 99563 9820) (symbols 48 20238 1) (miscs 40 38 143) (strings 32 29830 1170) (string-bytes 1 767316) (vectors 16 24983) (vector-slots 8 698705 17442) (floats 8 51 78) (intervals 56 260 7) (buffers 992 12))