GNU bug report logs - #57962
29.0.50; Odd font choices

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Tue, 20 Sep 2022 22:17:01 UTC

Severity: normal

Found in version 29.0.50

Full log


Message #8 received at 57962 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57962 <at> debbugs.gnu.org
Subject: Re: bug#57962: 29.0.50; Odd font choices
Date: Wed, 21 Sep 2022 10:19:37 +0800
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I'm not sure when this started happening, but probably not more than a
> month ago.
>
> An image to illustrate the problem:
>
>
>
>
>>From "emacs -Q" (but not with my normal font choices), the font used for
> the help-key-binding face is larger than the rest of the text, making
> various things kinda ugly.
>
> The normal text uses:
>
>     ftcrhb:-DAMA-Ubuntu Mono-regular-normal-normal-*-45-*-*-*-m-0-iso10646-1 (#x55)
>
> The keyboard text is:
>
>     ftcrhb:-PfEd-DejaVu Sans Mono-regular-normal-normal-*-45-*-*-*-m-0-iso10646-1 (#x52)
>
> And the help-key-binding face is:
>
> (defface help-key-binding
>   '((((class color) (min-colors 88) (background light))
> [...]
>      :inherit fixed-pitch)
>
> and
>
> (defface fixed-pitch
>   '((t :family "Monospace"))
>   "The basic fixed-pitch face."
>   :group 'basic-faces)
>
> So this chooses a different font than
>
> (defface default
>   '((t nil)) ; If this were nil, face-defface-spec would not be set.
>   "Basic default face."
>   :group 'basic-faces)
>
> ?

Yes, "Monospace" is mapped to a special font family by fontconfig,
sometimes different than the monospace font specified via xsettings.

I think the best thing to do would be to change fixed-pitch to be
affected by xsettings as well, but I'm not quite sure how to go about
doing that.




This bug report was last modified 2 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.