GNU bug report logs -
#57555
29.0.50; variable-pitch font issue with medium weight default font
Previous Next
Reported by: Amin Bandali <bandali <at> gnu.org>
Date: Sat, 3 Sep 2022 01:36:01 UTC
Severity: normal
Found in version 29.0.50
Done: Gregory Heytings <gregory <at> heytings.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 57555 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii writes:
>> From: Amin Bandali <bandali <at> gnu.org>
>> Cc: 57555 <at> debbugs.gnu.org
>> Date: Mon, 05 Sep 2022 11:08:10 -0400
>>
>> (when (display-graphic-p)
>> (set-fontset-font t 'arabic "Vazir"))
>>
>> And further down:
>>
>> (when (display-graphic-p)
>> (with-eval-after-load 'faces
>> (let ((grey "#e7e7e7"))
>> (set-face-attribute 'fixed-pitch nil :family "Source Code Pro")
>> (set-face-attribute 'mode-line nil
>> :background grey
>> :inherit 'fixed-pitch))))
>
> Does it change anything if you remove the customization of fixed-pitch
> face?
Removing that did not change anything.
[...]
>
> Even if you set the face's font explicitly by its full XLFD name, not
> implicitly via :family?
>
Ha, so I just tried with the following XLFD:
(set-face-font 'variable-pitch
"-GNU -FreeSans-*-*-*-*-14-*-*-*-*-0-iso10646-1")
And it works, somewhat. Emacs now uses GNU FreeSans, but seemingly
only its regular variant. Based on the '*' I specified for the third
and fourth fields (WEIGHT_NAME and SLANT), I would expect it to pick
GNU FreeSans's other variants (bold, oblique, or bold oblique) where
needed, but it doesn't seem to.
Here's a screenshot from Gnus, using the above set-face-font call to
set the above XLFD:
https://kelar.org/~bandali/tmp/20220903/gnus-after-xlfd.png
And here's a screenshot from Gnus without that call to set-face-font,
without the 6b1ed2f2c99a1c2da56c5f434570c438cad6576d emacs.git commit
that introduced this change:
https://kelar.org/~bandali/tmp/20220903/gnus-before.png
Notice how Emacs used to pick the bold and bold oblique variants for
those headers (gnus-before.png), but doesn't do so anymore
(gnus-after-xlfd.png).
This bug report was last modified 2 years and 162 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.