GNU bug report logs -
#52493
29.0.50; Setting Inconsolata up in init.el makes default face rendered wrong
Previous Next
Full log
View this message in rfc822 format
On 15.12.2021 17:57, Eli Zaretskii wrote:
>> From: Dmitry Gutov <dgutov <at> yandex.ru>
>> Date: Wed, 15 Dec 2021 02:43:30 +0300
>>
>> It's a weird scenario, but evaluating this in 'emacs -Q' will make
>> characters render more narrowly (and a little shorter) than it did
>> previously:
>>
>> (set-face-attribute 'default nil :height 110 :family "Inconsolata_dz")
>>
>> See the attached screenshot with comparison (master is on the left).
>
> Indeed, weird. What does the below show?
>
> M-: (face-font 'default) RET
>
> after you evaluate the above in "emacs -Q"?
"-DAMA-Ubuntu Condensed-regular-normal-normal-*-29-*-*-*-*-0-iso10646-1"
So... not the right family and it's "condensed", for some reason.
For comparison,
(set-face-attribute 'default nil :height 110 :family "Ubuntu")
results in
"-DAMA-Ubuntu-regular-normal-normal-*-29-*-*-*-*-0-iso10646-1"
And by default (without any set-face-attribute calls),
(face-font 'default) evaluates to
"-DAMA-Ubuntu Mono-regular-normal-normal-*-35-*-*-*-m-0-iso10646-1"
> And how does it differ
> from the same in a version of Emacs that predates the changes of the
> mode-line face?
Current emacs-28 returns
"-PfEd-Inconsolata_dz-normal-normal-normal-*-29-*-*-*-m-0-iso10646-1"
Regarding "version of Emacs that predates", I wasn't sure which commit
to pick exactly, but 756b8a5f1bd28aeadc804 also returns that value, and
doesn't have the described problem.
> Also, what happens if you invoke Emacs like this:
>
> $ emacs -Q -fn Inconsolata_dz
It doesn't look as narrow, and (face-font 'default) evaluates to
"-PfEd-Inconsolata_dz-medium-normal-normal-*-32-*-*-*-m-0-iso10646-1"
This bug report was last modified 2 years and 249 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.