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


View this message in rfc822 format

From: Gregory Heytings <gregory <at> heytings.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>, 59347 <at> debbugs.gnu.org
Subject: bug#59347: 29.0.50; `:family` face setting ignored
Date: Tue, 22 Nov 2022 13:38:19 +0000
>
> Whereas with your proposal, it will start from a "clean slate" every 
> time and will need to examine many (if not all) of the fonts on the 
> system to be sure score-only matches will find the best candidate.
>

That's not what it does, no.  The loop in font_find_for_lface limits the 
number of fonts that are considered to some foundry, family, registry and 
additional style, and only considers more fonts if no suitable fonts have 
been found.

>
> Also, font_score only scores the numerical attributes, so how do we 
> assess the "score" of matches for :family or :adstyle?
>

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).




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.