unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Corwin Brust <corwin@bru.st>
Cc: 54685@debbugs.gnu.org
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	[thread overview]
Message-ID: <83a6d2f8o8.fsf@gnu.org> (raw)
In-Reply-To: <CAJf-WoRkS_ARJ+Px1jixMgxiyC62nR=LaOesD+_J8=G_z3UDPQ@mail.gmail.com> (message from Corwin Brust on Sun, 3 Apr 2022 10:53:05 -0500)

> From: Corwin Brust <corwin@bru.st>
> 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 <eliz@gnu.org> 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.





  reply	other threads:[~2022-04-03 16:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-02 23:48 bug#54685: 28.0.92; incorrect font on new frame after menu-set-font (Win32) Corwin Brust
2022-04-03  5:20 ` Eli Zaretskii
2022-04-03 14:49   ` Corwin Brust
2022-04-03 15:03     ` Eli Zaretskii
2022-04-03 15:53       ` Corwin Brust
2022-04-03 16:12         ` Eli Zaretskii [this message]
2022-04-03 16:23           ` Corwin Brust
2022-04-03 16:34             ` Eli Zaretskii
2022-04-15 12:39               ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a6d2f8o8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=54685@debbugs.gnu.org \
    --cc=corwin@bru.st \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).