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#54685: 28.0.92; incorrect font on new frame after menu-set-font (Win32) Date: Sun, 03 Apr 2022 19:12:07 +0300 Message-ID: <83a6d2f8o8.fsf@gnu.org> References: <8335iu4uad.fsf@gnu.org> <83fsmufbui.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54685@debbugs.gnu.org To: Corwin Brust Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 03 18:13:13 2022 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 1nb2qm-0003GN-EW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Apr 2022 18:13:12 +0200 Original-Received: from localhost ([::1]:37788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nb2ql-0006lI-1v for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Apr 2022 12:13:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb2qe-0006l3-8k for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 12:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nb2qc-0003qY-LG for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 12:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nb2qc-0004sg-E9 for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 12:13: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: Sun, 03 Apr 2022 16:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 54685-submit@debbugs.gnu.org id=B54685.164900233518708 (code B ref 54685); Sun, 03 Apr 2022 16:13:02 +0000 Original-Received: (at 54685) by debbugs.gnu.org; 3 Apr 2022 16:12:15 +0000 Original-Received: from localhost ([127.0.0.1]:49318 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nb2pq-0004rf-Qk for submit@debbugs.gnu.org; Sun, 03 Apr 2022 12:12:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nb2pp-0004rU-AQ for 54685@debbugs.gnu.org; Sun, 03 Apr 2022 12:12:13 -0400 Original-Received: from [2001:470:142:3::e] (port=38512 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nb2pk-0003o0-1L; Sun, 03 Apr 2022 12:12:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=q5mXNLGHE0iwbRb1+guRL6cG9SyCnO2zNaBxc1sYpAM=; b=b73gIYEnt2ZG 38lIkkdGGH2scKIf7d4EAGTfa3CTOEGmTbr9ZR+NKIwid9552BXImN7oPAsN4xH7WTAViG16cA8xy 08fWpgsqnd1kkQxJ2W+spojIPACOUaU1JQef4wUUk+gBQHgOTlka9aWPauexiN81YSwwccCne4q5E FS8gC7h5eGbHGZ9uf0mj2lxGBbGino2UJMa+oxAo/gwbT9lmlugHrLGVrbtYA1/FCgJXIoXd4E26h 3MJIyez4tWKYjkYQfqQEm5T5NoA4D3njeT7GRZzGTCj7ATWeEh+B+7kkeNv6zCICaXpgycW0yBiiN whzhgqzm+yXVqXlncPVPMg==; Original-Received: from [87.69.77.57] (port=4893 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 1nb2pj-000862-HN; Sun, 03 Apr 2022 12:12:07 -0400 In-Reply-To: (message from Corwin Brust on Sun, 3 Apr 2022 10:53:05 -0500) 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:229362 Archived-At: > From: Corwin Brust > Date: Sun, 3 Apr 2022 10:53:05 -0500 > Cc: 54685@debbugs.gnu.org > > On Sun, Apr 3, 2022 at 10:03 AM Eli Zaretskii wrote: > > > > What other variants of this font do you have there? > > Here are all of the variants I have for the "Fira Sans" font. (Why are we suddenly talking about Fira Sans, when your original report was about Robot?) > Thin** > Thin Italic** > UltraLight** > UltraLight Italic** > ExtraLight Italic** > ExtraLight** > Light** > Light Italic** > Semi Light** > Semi Light Italic** > Regular > Italic > Medium > Medium Italic > SemiBold** > SemiBold Italic** > Bold > Bold Italic > ExtraBold** > ExtraBold Italic** > Heavy** > Heavy Italic** > > All variants appear correctly after I select them as default in the > initial frame. Those followed by ** exhibit the problem: they aren't > used in the new frame after the variant was selected as default in the > initial frame. If so, then this is expected. The APIs we use on MS-Windows to enumerate fonts in a font family consider only 4 font varieties to belong to the same family: Regular, Italic, Bold, and Bold-Italic. All the other varieties aren't returned by those APIs when we request to list all the fonts in a family. (I don't know if this is just the deficiency of the APIs we use, or a general issue with how fonts are managed on Windows.) So any font variety that is not one of those 4 will cause trouble sooner or later. (Medium is special, because we have an extra-special kludge to allow Medium when Regular is being sought.) So I think what you see is expected: on Windows one cannot select a Light (or Thin, or UltraLight, or SemiBold, or ...) font for the default face and hope that it will work as expected.