From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49797: 28.0.50; Setting face to custom fontset doesn't work Date: Sun, 01 Aug 2021 09:03:31 +0300 Message-ID: <83eebdog5o.fsf@gnu.org> References: <79E99CB7-5D9E-4222-899B-5D05C9B84AF3@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36932"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49797@debbugs.gnu.org To: Yuan Fu , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 01 08:04:08 2021 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 1mA4a0-0009Qx-OC for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 08:04:08 +0200 Original-Received: from localhost ([::1]:52694 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mA4Zz-0001Tp-6a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 02:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mA4Zu-0001Th-Fy for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 02:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mA4Zu-0005jm-8a for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 02:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mA4Zt-0007xi-VK for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 02:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Aug 2021 06:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49797 X-GNU-PR-Package: emacs Original-Received: via spool by 49797-submit@debbugs.gnu.org id=B49797.162779783230588 (code B ref 49797); Sun, 01 Aug 2021 06:04:01 +0000 Original-Received: (at 49797) by debbugs.gnu.org; 1 Aug 2021 06:03:52 +0000 Original-Received: from localhost ([127.0.0.1]:35365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mA4Zk-0007xI-5x for submit@debbugs.gnu.org; Sun, 01 Aug 2021 02:03:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51168) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mA4Zh-0007x3-93 for 49797@debbugs.gnu.org; Sun, 01 Aug 2021 02:03:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40694) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mA4Zc-0005VD-2z; Sun, 01 Aug 2021 02:03:44 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4923 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mA4Zb-0004eH-K7; Sun, 01 Aug 2021 02:03:43 -0400 In-Reply-To: <79E99CB7-5D9E-4222-899B-5D05C9B84AF3@gmail.com> (message from Yuan Fu on Sat, 31 Jul 2021 17:37:05 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:211036 Archived-At: > From: Yuan Fu > Date: Sat, 31 Jul 2021 17:37:05 -0400 > > If I evaluate the following: > > (progn > (create-fontset-from-fontset-spec > (font-xlfd-name > (font-spec :registry "fontset-lunamono"))) > (set-fontset-font "fontset-lunamono" 'latin (font-spec :family "SF Mono")) > (set-face-attribute 'default nil :fontset "fontset-lunamono”)) > > I expect Latin characters to be shown in SF Mono font, but that’s not what happened. If I instead set font for the default fontset, the characters in the buffer are correctly displayed in SF Mono font. I tried this code snippet with Emacs 26, 27 and 28, and all of them have this problem. > > I can see that the fondest is correctly modified by looking at the result of describe-fontset, so I guess it’s the face that isn’t finding the correct font to display the character. CC'ing Handa-san, in the hope that he could help us with this issue. Personally, I lack a clear understanding of how user-defined fontsets are supposed to be used instead of the standard fontsets. Is that only by using the :font attribute of a face?