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 11:27:53 +0900 Message-ID: <86d0ap3j9y.fsf@gmail.com> References: <86imki4elg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="15447"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39482@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 08 03:29:16 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 1j0Frw-0003vG-BA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Feb 2020 03:29:16 +0100 Original-Received: from localhost ([::1]:37184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0Fru-00071Y-VY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Feb 2020 21:29:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60539) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j0Frk-0006yF-Gv for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 21:29:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j0Frj-0002Dk-92 for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 21:29:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44554) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j0Frj-0002Cy-5D for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 21:29:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j0Fri-0001Xa-1r for bug-gnu-emacs@gnu.org; Fri, 07 Feb 2020 21:29: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: Sat, 08 Feb 2020 02:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39482 X-GNU-PR-Package: emacs Original-Received: via spool by 39482-submit@debbugs.gnu.org id=B39482.15811288895862 (code B ref 39482); Sat, 08 Feb 2020 02:29:02 +0000 Original-Received: (at 39482) by debbugs.gnu.org; 8 Feb 2020 02:28:09 +0000 Original-Received: from localhost ([127.0.0.1]:50527 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0Fqr-0001WT-Bp for submit@debbugs.gnu.org; Fri, 07 Feb 2020 21:28:09 -0500 Original-Received: from mail-pg1-f178.google.com ([209.85.215.178]:39330) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j0Fqo-0001W4-V7 for 39482@debbugs.gnu.org; Fri, 07 Feb 2020 21:28:07 -0500 Original-Received: by mail-pg1-f178.google.com with SMTP id j15so747361pgm.6 for <39482@debbugs.gnu.org>; Fri, 07 Feb 2020 18:28:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=qEArfE/Ffp20hQcXLFGK6E76trO3bQqPurZiolMFe+U=; b=vh/e+yFmGb86ybKt2+KiANb0QNVB27nPvPHqvBiIfl4TUaQ39W9wb6zyIftGeWFQ67 bNR9pftVXnaC9pyCzccTx60HBTqJ67SsRacT/8koHrTJuFYZ/6eeSjEeFZSUZpGhr8Lq MdWrO9WWd17i5hvpVUyGrcuLxln5H0xPjl5EvG+RXjsjiHa+BU87iWG6jwPhKtpi8LMN XVwn0iEDBNF+/u9J92WmhqRcaeTxQOLCSnmKiIe5D2Z/oLRplW2n8FLZXRplQJ1lgaOu orlPvyeTQvC3mQ4w40QpRa45yquoZHpOOImiXPskEuljZoGYQaoVpHSiOjJdL0EbpV70 cKXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=qEArfE/Ffp20hQcXLFGK6E76trO3bQqPurZiolMFe+U=; b=ZiBSfKDrUbfej5qdhjJI8Jiwz5t+lQz+AqDi31kuTQBuM1tyMZAKh63axyeQF1zM75 31Rg9NY6nZCKUpTWI5qdS03KYXNVRn3ENgXmtUU+wFg9GB4pPMUcB50X+6QXMj6y7Oqr +c/sz1rMqSRTlo0OqKuEv9aKIcinV2H+jJEMEwM20LeuO3o9wq+7wrqyd0BkvwPzVETI fgkKrfRA3G1evmSdj6SQmLJ/w370LNUxfVud9uA23WVF1TywjkMFdhrIEdaZNugEQZkb wIz4ZlaX06dWooC8r0wriN365Nxjl9SF7X+t9glsAOLckcLW8YPEANazcesbvl4YS6hc oWiw== X-Gm-Message-State: APjAAAXdrVwN+EKNgeqk4QVZyjkL9pYclarWhchVfFiSJy4jTL6nk53j 2vsEgzqb5KGeyeyKvQV77Dipm7rL X-Google-Smtp-Source: APXvYqzyuNjC/YNWoW7WdnHwMO4Uim5n54hUZ8Wz5WWpVsxVdY+6etFrFD0hFdRavv3e+J2UXJLkSQ== X-Received: by 2002:aa7:979a:: with SMTP id o26mr1925053pfp.257.1581128880761; Fri, 07 Feb 2020 18:28:00 -0800 (PST) Original-Received: from HP (east42-p111.eaccess.hi-ho.ne.jp. [219.121.173.112]) by smtp.gmail.com with ESMTPSA id x7sm4468763pfp.93.2020.02.07.18.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Feb 2020 18:28:00 -0800 (PST) In-Reply-To: <83sgjme64f.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 07 Feb 2020 18:04:16 +0200") 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:175769 Archived-At: Eli Zaretskii writes: >> From: ynyaaa@gmail.com >> Date: Sat, 08 Feb 2020 00:11:23 +0900 >> >> (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) > > Why are you using 'append here? AFAIU, that means the default fontset > settings, which are set up in fontset.el, are used first, and your > settings are only used as fallback, when the defaults fail to find a > glyph for a charcater. That could explain why you see what you see. > > Also, since we've already established that Uniscribe on Windows 10 > sometimes fails in strange ways, please switch to Emacs 27 with > HarfBuzz, because otherwise investigating these problems could be a > huge waste of our time for no good reason. You can find a relatively > recent build of the Emacs 27 snapshot here: > > https://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-27/ > > Thanks. I installed emacs-27.0.60-snapshot-emacs-27-2019-12-28-x86_64-installer.exe and tested the same form. It looks like there is no difference. Replacing 'append with 'prepend makes no difference. #'setfontset-font does not work well if ADD argument is non-nil. In the example below, dummy3 should be added for both 199 and 200, but it is not added for 200. (progn (set-fontset-font t 199 "dummy1") (set-fontset-font t 200 "dummy2") (set-fontset-font t '(199 . 200) "dummy3" nil 'append) (mapcar (lambda (c) (cons c (aref (fontset-info t) c))) '(199 200))) => ((199 ("-*-dummy1-*-*-*-*-*-*-*-*-*-*-*-*") ("-*-dummy3-*-*-*-*-*-*-*-*-*-*-*-*")) (200 ("-*-dummy2-*-*-*-*-*-*-*-*-*-*-*-*"))) >> (kr-spec '("BatangChe" . "ksc5601.1987")) Replacing "ksc5601.1987" with "ksc5601.1987-0" makes most of 'korean-ksc5601 characters displayed with BatangChe font. (Some characters are displayed with SimHei.) I think "ksc5601", "ksc5601*" or "ksc5601.1987" should be accepted.