GNU bug report logs -
#59347
29.0.50; `:family` face setting ignored
Previous Next
Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Fri, 18 Nov 2022 04:58: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
View this message in rfc822 format
>> src/emacs -Q --eval \
>> '(progn
>> (custom-set-faces `(variable-pitch
>> ((t (:family "DejaVu Sans")))))
>> (add-to-list `default-frame-alist
>> `(font . "-misc-fixed-*-r-semicondensed-*-13-*-*-*-*-*-*-*"))
>> (font-lock-mode -1)
>> (insert (propertize "hello" `face `variable-pitch)))'
>>
>> I get "hello" shown in the same font as with the default face
>> (i.e. "misc-fixed") instead using DejaVu Sans.
>
> All those backquotes, are they really backquotes when you type this?
Yes.
> Or should they be escaped apostrophes?
It's a pain in the rear to escape quotes from within quotes, so I use
backquotes instead, which works as well as long as there's no comma
nested inside :-)
> More to the point, why do you think this is a bug in Emacs? What
> happened here is that you requested a face to use some font family,
> and Emacs for whatever reasons decided not to use that family. Why is
> that a bug? Why are you sure Emacs didn't do that for valid reasons?
I'm not. I just can't see an obvious good reason for it.
I suspect I wouldn't be the only user who'd find this rather perplexing.
So let me return the question: what part of the above code makes you
think it's correct for Emacs to use a different font than the DejaVu Sans?
> Like, for example, that DejaVu Sans doesn't have a variant with the
> size that matches the default face's font?
DejaVu is a scalable font, so I can't see how it could not have a size
that matches.
Stefan
This bug report was last modified 2 years and 159 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.