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#51277: 27.1; menu-set-font not loading correct font Date: Tue, 19 Oct 2021 15:43:46 +0300 Message-ID: <83a6j5chh9.fsf@gnu.org> References: <83v91tclv8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40355"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51277@debbugs.gnu.org To: Jesse Sheidlower Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 19 14:44:56 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 1mcoUC-000AKp-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Oct 2021 14:44:56 +0200 Original-Received: from localhost ([::1]:54170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcoUA-00065M-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 Oct 2021 08:44:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42268) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mcoTN-00064X-VL for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 08:44:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38260) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mcoTK-0002Jy-El for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 08:44:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mcoTK-0005w0-3Z for bug-gnu-emacs@gnu.org; Tue, 19 Oct 2021 08:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Oct 2021 12:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51277 X-GNU-PR-Package: emacs Original-Received: via spool by 51277-submit@debbugs.gnu.org id=B51277.163464742622775 (code B ref 51277); Tue, 19 Oct 2021 12:44:02 +0000 Original-Received: (at 51277) by debbugs.gnu.org; 19 Oct 2021 12:43:46 +0000 Original-Received: from localhost ([127.0.0.1]:49806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcoT4-0005vG-BY for submit@debbugs.gnu.org; Tue, 19 Oct 2021 08:43:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mcoT2-0005v1-2A for 51277@debbugs.gnu.org; Tue, 19 Oct 2021 08:43:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52402) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mcoSw-00028q-Cv; Tue, 19 Oct 2021 08:43:38 -0400 Original-Received: from [87.69.77.57] (port=2317 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 1mcoSv-0002uz-RE; Tue, 19 Oct 2021 08:43:38 -0400 In-Reply-To: (message from Jesse Sheidlower on Tue, 19 Oct 2021 08:20:38 -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:217571 Archived-At: [Please use Reply All to reply, so that the discussion gets recorded on the bug tracker.] > Date: Tue, 19 Oct 2021 08:20:38 -0400 > From: Jesse Sheidlower > > > What happens if you invoke Emacs like this: > > > > emacs -Q -fn 'Operator Mono SSm' > > > > and then type this: > > > > M-x (set-face-attribute 'default nil :weight 'book) RET > > > > Does that produce the expected effect? > > Depends on what I should expect! You should expect to see the "book" variant of the font. Isn't that what you wanted? > At the first command, Emacs starts with the bold variant; running the second command returns '[No match]', and we stay in the bold variant. Sorry, I meant to say "M-:" instead of "M-x". It was a typo. > > Sounds like some problem with that font. Does this work correctly > > with other fonts that have the "book" variant? > > No, it doesn't, but the only other font I have with a "book" variant happens to be from the same foundry. Hoefler Decimal Book in fact opens the file for Decimal-XBlack, even though there is a file for Decimal-Book. > > I did ask someone at Hoefler Type Foundry about this, and they said they weren't aware of anything that could be causing it. Then I suggest to try with some other fonts. > I don't know how Emacs does this under the hood No one does, unfortunately. > but the fact that menu-set-font does correctly display all the variants with their correct names, but then loads something different, suggested that there might be a problem with Emacs (which is why I filed a bug report, instead of just assuming that I'm the one fucking something up). No, that doesn't necessarily mean anything. the font selection dialog is something implemented in GTK, I believe, and it just shows the fonts that GTK knows about. When Emacs tries to use that font, it could find some problems with it, and that could lead to what you see.