GNU bug report logs - #59347
29.0.50; `:family` face setting ignored

Previous Next

Package: emacs;

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


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

From: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: bug-gnu-emacs <at> gnu.org, monnier <at> iro.umontreal.ca, 59347 <at> debbugs.gnu.org
Subject: Re: bug#59347: 29.0.50; `:family` face setting ignored
Date: Tue, 22 Nov 2022 15:41:47 +0000
>>>> That's the purpose of the loop at the end of font_find_for_lface. 
>>>> It starts with a specific spec and gradually makes it less specific 
>>>> if necessary (that is, if no suitable font has been found with a more 
>>>> specific spec).
>>>
>>> So we will be back to the same problem with those.
>>
>> Sorry, I don't understand what you mean.
>
> I mean that the basic algorithm that gradually makes the spec less 
> specific is used for non-numerical attributes, and so can potentially 
> reject valid fonts, just like it happens with these 3 numerical 
> attributes.
>

No, it won't reject valid fonts (unless I misunderstand what you mean by 
"valid font").  For example, when searching for a font in the monospace 
family, all fonts in the monospace family are considered.  If no such 
fonts are found, Emacs tries again (see face-font-family-alternatives) and 
considers all fonts in the courier family.  If no such fonts are found, 
Emacs tries again and considers all fonts in the fixed family.  After 
which Emacs gives up.




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

Previous Next


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