From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Tue, 22 Nov 2022 14:45:20 +0000 Message-ID: <0d1ea3007f6995e84576@heytings.org> References: <83cz9j9zyu.fsf@gnu.org> <838rk77yfo.fsf@gnu.org> <834juu9aya.fsf@gnu.org> <7cc9e03786024fc72f3b@heytings.org> <83a64l65ai.fsf@gnu.org> <7cc9e0378678a092e6ee@heytings.org> <835yf962q4.fsf@gnu.org> <7cc9e03786754c9e0aaf@heytings.org> <83zgcl4jra.fsf@gnu.org> <7cc9e03786c281cffdd4@heytings.org> <83tu2t4ie9.fsf@gnu.org> <7cc9e03786e324ff82ef@heytings.org> <83bkp04gjl.fsf@gnu.org> <83leo42vm9.fsf@gnu.org> <0d1ea3007fd94b7ae0b1@heytings.org> <83r0xv1649.fsf@gnu.org> <0d1ea3007f532a493429@heytings.org> <83cz9f12bh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8420"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 59347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 15:46:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oxUXQ-0001ye-0J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 15:46:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxUXE-0001xO-Sl; Tue, 22 Nov 2022 09:46:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxUXD-0001xA-BY for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 09:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxUXC-0003bh-T5 for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 09:46:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxUXC-0002cX-IN for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2022 09:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59347 X-GNU-PR-Package: emacs Original-Received: via spool by 59347-submit@debbugs.gnu.org id=B59347.166912832410012 (code B ref 59347); Tue, 22 Nov 2022 14:46:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 22 Nov 2022 14:45:24 +0000 Original-Received: from localhost ([127.0.0.1]:50328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxUWZ-0002bQ-KP for submit@debbugs.gnu.org; Tue, 22 Nov 2022 09:45:23 -0500 Original-Received: from heytings.org ([95.142.160.155]:54532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxUWY-0002bI-8d for 59347@debbugs.gnu.org; Tue, 22 Nov 2022 09:45:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1669128321; bh=XgZ++Ru6OKBDIiReSVJ0iV+6NTB8wV44O6waa/9/h3M=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=vaZ1H2sZvEkNiyU5emyh6IBVWb2zx6LbuTUxRGXAofAv+LfETrxdA7ihgwgflAWLA HcP/aZ81BZr5yPCNWK7ZCXtY8ViLItrWcZb++Evar3jXv7gtqeTUm1qfP5X7TlyaKr JR6eQN6ER2ASRh6lq38Sgz6nsGCgN23m7QIl+tnxrYCYQVPF+Mu7mTnwH21KdBxEIs Ioj7uaGYoAXQzIWb5DwKQf37In0sZaH1Z75boY6ygPxxwh2zEPXV1wWb6XFVYoUVU0 CDyY0PemNEdHA8i2b+L/6CbhowdhTMKKSY7+ZTtJoz+r9r5cN/FKpK6VDd8+vUXmuO jDA6lBVeQq9hg== In-Reply-To: <83cz9f12bh.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:248645 Archived-At: >> 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. > > But the same considerations apply to weight, slant, and width: shouldn't > we prefer an identical value for each one of those, if that is possible? > Of course, and that's font_select_entity does (by using font_score). > > And if no suitable candidate is found by making these 3 attributes free, > then we are back to the same problem, now with non-numerical attributes. > Right? > I don't understand your question, sorry. As I said, if no suitable candidate is found, the loop at the end of font_find_for_lface gradually makes the other attributes less specific until a suitable font is found. >> 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.