unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dima Kogan <dima@secretsauce.net>
Cc: 52905@debbugs.gnu.org
Subject: bug#52905: 29.0.50; "fixed-pitch" face doesn't respect the font in "default-frame-alist"
Date: Fri, 31 Dec 2021 15:10:05 +0200	[thread overview]
Message-ID: <83a6gghqdu.fsf@gnu.org> (raw)
In-Reply-To: <87wnjl9nsl.fsf@secretsauce.net> (message from Dima Kogan on Fri,  31 Dec 2021 00:24:53 -0800)

> From: Dima Kogan <dima@secretsauce.net>
> Cc: 52905@debbugs.gnu.org
> Date: Fri, 31 Dec 2021 00:24:53 -0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Thanks, but I don't think we should fix this.  I see no problem to
> > fix.  The fixed-pitch face is designed to have a distinct font.
> 
> OK. Can we then at least update the docs? This page:
> 
>   https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html
> 
> That page tells the user how to change the font, but don't say anything
> about when that setting will be respected.

You mean, to say explicitly that "the default font" in that node means
"the font of the default face"?

> The current behavior of emacs
> completely ignoring this setting when picking the "fixed-pitch" and
> "variable-pitch" fonts feels like it should be noted on that page.

That behavior is not specific to these faces, it happens with any face
which specifies a font.

> Is using the default-frame-alist to set the default font still our
> recommended best practice? Is that what you do?

Yes and yes.  It's just that you seem to interpret "the default font"
differently from what it was supposed to mean.  It means the font of
the default face.  Any face that doesn't specify a font or some font
attribute will use the same font, but faces that do specify those
attributes can (and usually do) select other fonts.  To affect the
font of the faces which specify font attributes, you need to customize
those faces separately from the default face and default-frame-alist.





  reply	other threads:[~2021-12-31 13:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-30 20:17 bug#52905: 29.0.50; "fixed-pitch" face doesn't respect the font in "default-frame-alist" Dima Kogan
2021-12-31  7:26 ` Eli Zaretskii
2021-12-31  7:34   ` Dima Kogan
2021-12-31  8:15     ` Eli Zaretskii
2021-12-31  8:24       ` Dima Kogan
2021-12-31 13:10         ` Eli Zaretskii [this message]
2022-01-01 19:07           ` Dima Kogan
2022-01-01 20:28             ` Eli Zaretskii
2022-01-01 20:32               ` Dima Kogan

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=83a6gghqdu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=52905@debbugs.gnu.org \
    --cc=dima@secretsauce.net \
    /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).