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 10:15:40 +0200 [thread overview]
Message-ID: <83o84xgpg3.fsf@gnu.org> (raw)
In-Reply-To: <875yr5b47r.fsf@secretsauce.net> (message from Dima Kogan on Thu, 30 Dec 2021 23:34:58 -0800)
> From: Dima Kogan <dima@secretsauce.net>
> Cc: 52905@debbugs.gnu.org
> Date: Thu, 30 Dec 2021 23:34:58 -0800
>
> I just looked at version control, and the thing that actually made
> things weird in THIS case is the update to org 9.5:
>
> https://github.com/emacs-mirror/emacs/commit/bf9ec3d91a79414deac039f7bf83352a9b0a9a85
>
> It made the org-meta-line face inherit from "fixed-pitch", which is
> fine.
So this is why it stopped to work for you: Org now uses a different
parent face for its faces. This has nothing to do with how Emacs
selects fonts for faces.
> Yes. That is exactly what it's doing today. But it isn't nice. If emacs
> has a "default" font, and that font happens to be a fixed-pitch font,
> then the "fixed-pitch" face should use that default font.
I respectively disagree. The fixed-pitch face exists to be able to
specify a different fixed-pitch font for text that needs to have a
distinctly different appearance. It makes little sense to me to
make it use the same font as the default face.
> Otherwise, the "default" font choice is ignored in arbitrary places,
> creating a poor user experience.
Lisp programs that want to avoid that should not use a different face,
or should tell users to customize the respective faces if they want
the same font as for the default face.
> I think the ways to fix this are:
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.
> Is there an easy, reliable way to tell if a given font is fixed or
> not?
You could apply heuristics based on SPACE-WIDTH and AVERAGE-WIDTH
values returned by font-info. But basically, I don't think you can
know for sure.
next prev parent reply other threads:[~2021-12-31 8:15 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 [this message]
2021-12-31 8:24 ` Dima Kogan
2021-12-31 13:10 ` Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83o84xgpg3.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.