From: Lars Ingebrigtsen <larsi@gnus.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 57962@debbugs.gnu.org
Subject: bug#57962: 29.0.50; Odd font choices
Date: Fri, 14 Oct 2022 14:13:22 +0200 [thread overview]
Message-ID: <87czaua9i5.fsf@gnus.org> (raw)
In-Reply-To: <87edva7gpo.fsf@yahoo.com> (Po Lu's message of "Fri, 14 Oct 2022 20:05:55 +0800")
Po Lu <luangruo@yahoo.com> writes:
> What happens if you try setting it to each of the following in order?
> (The list below was taken straight from xfns.c.)
>
> #if defined USE_CAIRO || defined HAVE_XFT
> /* This will find the normal Xft font. */
> "monospace-10",
> #endif
> "-adobe-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1",
> "-misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-1",
> "-*-*-medium-r-normal-*-*-140-*-*-c-*-iso8859-1",
> /* This was formerly the first thing tried, but it finds
> too many fonts and takes too long. */
> "-*-*-medium-r-*-*-*-*-*-*-c-*-iso8859-1",
> /* If those didn't work, look for something which will
> at least work. */
> "-*-fixed-*-*-*-*-*-140-*-*-c-*-iso8859-1",
> "fixed",
>
> It's a long shot, but if it still doesn't work then I'm really out of
> ideas.
Well, the font Emacs has chosen for `default' is "-DAMA-Ubuntu
Mono-regular-normal-normal-*-45-*-*-*-m-0-iso10646-1", so if I say
(defface fixed-pitch
'((t :font "-DAMA-Ubuntu Mono-regular-normal-normal-*-45-*-*-*-m-0-iso10646-1"))
"The basic fixed-pitch face."
:group 'basic-faces)
then things look fine, of course. But we want that to happen
automatically (if `default' is using a fixed pitch font).
I.e., if something like this was possible:
(defface fixed-pitch
'((fixed-width-p default) :inherit default)
(t :family "Monospace"))
"The basic fixed-pitch face."
:group 'basic-faces)
then that is what we'd want, I think? But I don't think we can say
something like that, can we?
Hm, I should remind myself how those defface predicates work...
next prev parent reply other threads:[~2022-10-14 12:13 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 [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czaua9i5.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=57962@debbugs.gnu.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 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.