From: Stefan Kangas <stefankangas@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>, Eli Zaretskii <eliz@gnu.org>
Cc: luangruo@yahoo.com, 57962@debbugs.gnu.org
Subject: bug#57962: 29.0.50; Odd font choices
Date: Mon, 17 Oct 2022 14:20:06 +0000 [thread overview]
Message-ID: <CADwFkmkxxfU1dgrZLsh=e3JceztfVU4opBrSkYSodMU3WgcBzQ@mail.gmail.com> (raw)
In-Reply-To: <87czaqg4cn.fsf@gnus.org>
Lars Ingebrigtsen <larsi@gnus.org> writes:
> So there is no way to say "I have font X, give me font Y of the same
> size".
Right. And in Emacs, this stuff tends to stick out more because we are
firmly in the uncanny valley between having the text rendering
capabilities of an average web browser (but we are much less advanced)
and a terminal emulator (but we are much more advanced).
> So I think we just have to mitigate this on a practical level, and the
> practical problem we have is that we expect a (fixed pitch) `default' font
> to have the same size as the `help-key-binding' font, since we mix these
> faces so much in our displays, and we want them to line up in tabular
> outputs.
>
> This means that we can either remove ":inherit fixed-pitch" from the
> latter face -- and that would fix the problem in 99.7% of the cases.
> But ideally, we'd like to have that face be fixed-pitch even if
> `default' uses a proportional font (which is possibly, but very very
> unusual).
Making `help-key-binding' just inherit from `default' is easy enough,
but we already expect that face to work even with `variable-pitch-mode':
see `help-for-help'. :-(
So if don't have time to find a more proper solution for Emacs 29, we
would probably want to add some local hack there. (We could make
`help-for-help' not use `variable-pitch-mode' too. But that would be a
step backwards, IMHO, so I'd rather live with a hack.)
Maybe we should have `fixed-pitch' just always use the same font as the
default face? If we want some other look in info (or wherever we
currently use it) we should perhaps add some other face we could inherit
from there. But then, maybe figuring out how to do that is what this
entire thread is about...?
> To achieve that we'd have to implement something like
>
> :inherit (if (monospacep 'default) 'default 'fixed-pitch)
>
> or something?
Something like that, or perhaps make it depend on `variable-pitch-mode'?
next prev parent reply other threads:[~2022-10-17 14:20 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-20 22:16 bug#57962: 29.0.50; Odd font choices Lars Ingebrigtsen
2022-09-21 2:19 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-21 10:43 ` Lars Ingebrigtsen
2022-10-14 11:41 ` Lars Ingebrigtsen
2022-10-14 11:53 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-14 12:02 ` Lars Ingebrigtsen
2022-10-14 12:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-14 12:13 ` Lars Ingebrigtsen
2022-10-14 12:20 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-14 12:07 ` Eli Zaretskii
2022-10-14 12:18 ` Lars Ingebrigtsen
2022-10-14 12:37 ` Eli Zaretskii
2022-10-14 12:48 ` Lars Ingebrigtsen
2022-10-14 13:00 ` Eli Zaretskii
2022-10-14 13:06 ` Lars Ingebrigtsen
2022-10-14 13:09 ` Eli Zaretskii
2022-10-16 10:58 ` Lars Ingebrigtsen
2022-10-16 11:17 ` Eli Zaretskii
2022-10-16 12:19 ` Lars Ingebrigtsen
2022-10-16 13:53 ` Eli Zaretskii
2022-10-17 9:57 ` Lars Ingebrigtsen
2022-10-17 10:22 ` Eli Zaretskii
2022-10-17 11:35 ` Lars Ingebrigtsen
2022-10-17 12:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-17 14:26 ` Eli Zaretskii
2022-10-17 14:20 ` Stefan Kangas [this message]
2022-10-17 14:34 ` Eli Zaretskii
2022-10-17 15:40 ` Stefan Kangas
2022-10-18 0:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
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='CADwFkmkxxfU1dgrZLsh=e3JceztfVU4opBrSkYSodMU3WgcBzQ@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=57962@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=larsi@gnus.org \
--cc=luangruo@yahoo.com \
/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).