GNU bug report logs -
#51768
29.0.50; User font settings are ignored (Win10)
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Thu, 11 Nov 2021 15:21:02 UTC
Severity: normal
Found in version 29.0.50
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51768 in the body.
You can then email your comments to 51768 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 15:21:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arash Esbati <arash <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 11 Nov 2021 15:21:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
I've customized my fonts like this:
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "Source Code Pro Medium" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
'(fixed-pitch ((t (:inherity default)))))
Emacs from master (3e23494394) ignores these settings and starts with
Arial which looks likte this:
[arial.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
My last build (41b1fa05c7) works as expected. To reproduce:
1) Make a minimal init file with the code above
2) Start emacs
This is on Win10 with Msys2.
Best, Arash
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 15:51:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 51768 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> I've customized my fonts like this:
>
> (custom-set-faces
> ;; custom-set-faces was added by Custom.
> ;; If you edit it by hand, you could mess it up, so be careful.
> ;; Your init file should contain only one such instance.
> ;; If there is more than one, they won't work right.
> '(default ((t (:family "Source Code Pro Medium" :foundry "outline"
> :slant normal :weight medium :height 90 :width normal))))
> '(fixed-pitch ((t (:inherity default)))))
Sorry, there is a typo in :inherit -- finger trouble while yanking. It
should read:
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "Source Code Pro Medium" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
'(fixed-pitch ((t (:inherit default)))))
The behavior remains.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 17:02:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 51768 <at> debbugs.gnu.org (full text, mbox):
> From: Arash Esbati <arash <at> gnu.org>
> Date: Thu, 11 Nov 2021 16:18:32 +0100
>
> (custom-set-faces
> ;; custom-set-faces was added by Custom.
> ;; If you edit it by hand, you could mess it up, so be careful.
> ;; Your init file should contain only one such instance.
> ;; If there is more than one, they won't work right.
> '(default ((t (:family "Source Code Pro Medium" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
> '(fixed-pitch ((t (:inherity default)))))
>
> Emacs from master (3e23494394) ignores these settings and starts with
> Arial which looks likte this:
If you revert commit 32086ea23, does the problem go away?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 17:53:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 51768 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Arash Esbati <arash <at> gnu.org>
>> Date: Thu, 11 Nov 2021 16:18:32 +0100
>>
>> (custom-set-faces
>> ;; custom-set-faces was added by Custom.
>> ;; If you edit it by hand, you could mess it up, so be careful.
>> ;; Your init file should contain only one such instance.
>> ;; If there is more than one, they won't work right.
>> '(default ((t (:family "Source Code Pro Medium" :foundry "outline"
>> :slant normal :weight medium :height 90 :width normal))))
>> '(fixed-pitch ((t (:inherity default)))))
>>
>> Emacs from master (3e23494394) ignores these settings and starts with
>> Arial which looks likte this:
>
> If you revert commit 32086ea23, does the problem go away?
Yes, it does. I did
git checkout a491b73c765adde894acdbafc6fd97edd4343c2c
and built again. Font settings are respected.
Best, Arash
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 18:02:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 51768 <at> debbugs.gnu.org (full text, mbox):
> From: Arash Esbati <arash <at> gnu.org>
> Cc: 51768 <at> debbugs.gnu.org
> Date: Thu, 11 Nov 2021 18:52:30 +0100
>
> >> (custom-set-faces
> >> ;; custom-set-faces was added by Custom.
> >> ;; If you edit it by hand, you could mess it up, so be careful.
> >> ;; Your init file should contain only one such instance.
> >> ;; If there is more than one, they won't work right.
> >> '(default ((t (:family "Source Code Pro Medium" :foundry "outline"
> >> :slant normal :weight medium :height 90 :width normal))))
> >> '(fixed-pitch ((t (:inherity default)))))
> >>
> >> Emacs from master (3e23494394) ignores these settings and starts with
> >> Arial which looks likte this:
> >
> > If you revert commit 32086ea23, does the problem go away?
>
> Yes, it does. I did
>
> git checkout a491b73c765adde894acdbafc6fd97edd4343c2c
>
> and built again. Font settings are respected.
Where did you download this font, and which files exactly did you
download for it?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 18:47:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 51768 <at> debbugs.gnu.org (full text, mbox):
> From: Arash Esbati <arash <at> gnu.org>
> Cc: 51768 <at> debbugs.gnu.org
> Date: Thu, 11 Nov 2021 18:52:30 +0100
>
> >> (custom-set-faces
> >> ;; custom-set-faces was added by Custom.
> >> ;; If you edit it by hand, you could mess it up, so be careful.
> >> ;; Your init file should contain only one such instance.
> >> ;; If there is more than one, they won't work right.
> >> '(default ((t (:family "Source Code Pro Medium" :foundry "outline"
> >> :slant normal :weight medium :height 90 :width normal))))
> >> '(fixed-pitch ((t (:inherity default)))))
> >>
> >> Emacs from master (3e23494394) ignores these settings and starts with
> >> Arial which looks likte this:
> >
> > If you revert commit 32086ea23, does the problem go away?
>
> Yes, it does. I did
>
> git checkout a491b73c765adde894acdbafc6fd97edd4343c2c
>
> and built again. Font settings are respected.
I think I figured it out. It seems to be a cockpit error: the
"Medium" part is not part of the :family, and you already say
":weight medium" in the attributes anyway. Try this instead:
'(default ((t (:family "Source Code Pro" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
With this, I get the same results as with an older Emacs. It is true
that the older Emacs also accepted "Source Code Pro Medium" as the
family, but the result was that it loaded the same font as the master
branch without "Medium".
Does this resolve your issue?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 18:55:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 51768 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> Where did you download this font, and which files exactly did you
> download for it?
The fonts are from Github. I'm using Roman fonts version 2.030 and
Italic fonts version 1.050[1]. This is the package I fetched[2]. And
these are the fonts installed under /c/Windows/Fonts:
-> ll SourceCodePro-*
207K 19. Jul 2016 SourceCodePro-Black.ttf
171K 19. Jul 2016 SourceCodePro-BlackIt.ttf
207K 19. Jul 2016 SourceCodePro-Bold.ttf
171K 19. Jul 2016 SourceCodePro-BoldIt.ttf
209K 19. Jul 2016 SourceCodePro-ExtraLight.ttf
172K 19. Jul 2016 SourceCodePro-ExtraLightIt.ttf
177K 19. Jul 2016 SourceCodePro-It.ttf
209K 19. Jul 2016 SourceCodePro-Light.ttf
172K 19. Jul 2016 SourceCodePro-LightIt.ttf
208K 19. Jul 2016 SourceCodePro-Medium.ttf
172K 19. Jul 2016 SourceCodePro-MediumIt.ttf
208K 19. Jul 2016 SourceCodePro-Regular.ttf
208K 19. Jul 2016 SourceCodePro-Semibold.ttf
171K 19. Jul 2016 SourceCodePro-SemiboldIt.ttf
Best, Arash
Footnotes:
[1] https://github.com/adobe-fonts/source-code-pro/releases/tag/2.030R-ro%2F1.050R-it
[2] https://github.com/adobe-fonts/source-code-pro/releases/download/2.030R-ro%2F1.050R-it/source-code-pro-2.030R-ro-1.050R-it.zip
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Thu, 11 Nov 2021 20:51:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 51768 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
> I think I figured it out. It seems to be a cockpit error: the
> "Medium" part is not part of the :family, and you already say
> ":weight medium" in the attributes anyway. Try this instead:
>
> '(default ((t (:family "Source Code Pro" :foundry "outline" :slant
> normal :weight medium :height 90 :width normal))))
>
> With this, I get the same results as with an older Emacs. It is true
> that the older Emacs also accepted "Source Code Pro Medium" as the
> family, but the result was that it loaded the same font as the master
> branch without "Medium".
>
> Does this resolve your issue?
No, it doesn't. I updated my local git repo and built a fresh Emacs.
I'm comparing New (6c9ac53249) with Old (41b1fa05c7).
With '(default ((t (:family "Source Code Pro Medium" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
- Old uses Source Code Pro Medium font (good)
- New uses Arial (bad)
With '(default ((t (:family "Source Code Pro" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
- Old uses Source Code Regular font (bad)
- New uses Source Code Regular font (bad)
I'm attaching two snapshots where you can hopefully see the difference.
This is the medium font:
[medium.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
This is the regular font:
[regular.png (image/png, inline)]
[Message part 5 (text/plain, inline)]
Best, Arash
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51768
; Package
emacs
.
(Sat, 13 Nov 2021 13:25:02 GMT)
Full text and
rfc822 format available.
Message #29 received at 51768 <at> debbugs.gnu.org (full text, mbox):
> From: Arash Esbati <arash <at> gnu.org>
> Cc: 51768 <at> debbugs.gnu.org
> Date: Thu, 11 Nov 2021 21:49:25 +0100
>
>
> [1:text/plain Hide]
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > I think I figured it out. It seems to be a cockpit error: the
> > "Medium" part is not part of the :family, and you already say
> > ":weight medium" in the attributes anyway. Try this instead:
> >
> > '(default ((t (:family "Source Code Pro" :foundry "outline" :slant
> > normal :weight medium :height 90 :width normal))))
> >
> > With this, I get the same results as with an older Emacs. It is true
> > that the older Emacs also accepted "Source Code Pro Medium" as the
> > family, but the result was that it loaded the same font as the master
> > branch without "Medium".
> >
> > Does this resolve your issue?
>
> No, it doesn't. I updated my local git repo and built a fresh Emacs.
> I'm comparing New (6c9ac53249) with Old (41b1fa05c7).
>
> With '(default ((t (:family "Source Code Pro Medium" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
>
> - Old uses Source Code Pro Medium font (good)
> - New uses Arial (bad)
>
> With '(default ((t (:family "Source Code Pro" :foundry "outline" :slant normal :weight medium :height 90 :width normal))))
>
> - Old uses Source Code Regular font (bad)
> - New uses Source Code Regular font (bad)
Should be fixed now.
Reply sent
to
Arash Esbati <arash <at> gnu.org>
:
You have taken responsibility.
(Sat, 13 Nov 2021 15:27:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arash Esbati <arash <at> gnu.org>
:
bug acknowledged by developer.
(Sat, 13 Nov 2021 15:27:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 51768-done <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Arash Esbati <arash <at> gnu.org>
>> Cc: 51768 <at> debbugs.gnu.org
>> Date: Thu, 11 Nov 2021 21:49:25 +0100
>>
>>
>> [1:text/plain Hide]
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> > I think I figured it out. It seems to be a cockpit error: the
>> > "Medium" part is not part of the :family, and you already say
>> > ":weight medium" in the attributes anyway. Try this instead:
>> >
>> > '(default ((t (:family "Source Code Pro" :foundry "outline" :slant
>> > normal :weight medium :height 90 :width normal))))
>> >
>> > With this, I get the same results as with an older Emacs. It is true
>> > that the older Emacs also accepted "Source Code Pro Medium" as the
>> > family, but the result was that it loaded the same font as the master
>> > branch without "Medium".
>> >
>> > Does this resolve your issue?
>>
>> No, it doesn't. I updated my local git repo and built a fresh Emacs.
>> I'm comparing New (6c9ac53249) with Old (41b1fa05c7).
>>
>> With '(default ((t (:family "Source Code Pro Medium" :foundry
>> "outline" :slant normal :weight medium :height 90 :width normal))))
>>
>> - Old uses Source Code Pro Medium font (good)
>> - New uses Arial (bad)
>>
>> With '(default ((t (:family "Source Code Pro" :foundry "outline"
>> :slant normal :weight medium :height 90 :width normal))))
>>
>> - Old uses Source Code Regular font (bad)
>> - New uses Source Code Regular font (bad)
>
> Should be fixed now.
Yes, it's fixed. Many thanks for the quick fix. I'm closing this
report.
Best, Arash
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 12 Dec 2021 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 127 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.