From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Mon, 21 Nov 2022 22:05:05 -0500 Message-ID: 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> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4335"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 59347@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 22 04:06:20 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 1oxJc3-0000sE-3Y for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Nov 2022 04:06:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxJbo-0005uN-1S; Mon, 21 Nov 2022 22:06: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 1oxJbm-0005u7-AR for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 22:06:02 -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 1oxJbm-0000R8-2D for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 22:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxJbl-00011v-Ik for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 22:06:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Nov 2022 03:06:01 +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.16690863193908 (code B ref 59347); Tue, 22 Nov 2022 03:06:01 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 22 Nov 2022 03:05:19 +0000 Original-Received: from localhost ([127.0.0.1]:49315 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxJb4-00010y-Ok for submit@debbugs.gnu.org; Mon, 21 Nov 2022 22:05:19 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:30104) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxJb0-00010e-15 for 59347@debbugs.gnu.org; Mon, 21 Nov 2022 22:05:17 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2DDC7805D5; Mon, 21 Nov 2022 22:05:08 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3DD74805B2; Mon, 21 Nov 2022 22:05:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1669086306; bh=RwYZdRn8c3X3npJ2ndCrgsAhACtSedsXO90uCUrb/2Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oPjTfN8gK3JKU08Cdb8LxFv+67LVrxl3ZMz95eZAG2fsV4I3qHc1sawLIaXonytdP 00NLNaqtF7Jj1zf+6Szd0vTpNGBIpVck79z/AaLij4+8psPpee7xnP11biu9Hq97YT 2Wa8hVmVga5G3AZgi8oiQOChwMvdbsRyqm12kSmvRtFkeL10soui1iFVsaUdwDFyeP O8J4pD56IIOuPCcTro3FZJSueZeN04UUhCG5qfLFm3ezbpuPIJgMqt24zG+RYeBwFY fN9zAeTK3WuTCt8Dh2WhBpNKYSct293mPkiek5sRc/PowPdvsqakHgVrEQgYVCgF9j T/VGYbFAHE40Q== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id E32671202E5; Mon, 21 Nov 2022 22:05:05 -0500 (EST) In-Reply-To: <0d1ea3007fd94b7ae0b1@heytings.org> (Gregory Heytings's message of "Tue, 22 Nov 2022 00:34:06 +0000") 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:248600 Archived-At: > By the way, I suspect (but do not have a recipe right now) that the same bug > exists with the :width and :slant attributes (namely, that setting the font > for the default face with an "exotic" value leads to suboptimal/wrong font > choices for other faces), and that they should also be set to nil in > font_find_for_lface. IIUC the way we manage choose fonts is that we ask for a list of fonts matching a particular pattern. If that list is empty we make the pattern more coarse and try again. And when the list is not empty we choose the best fit based on a score. So in essence, what you're saying is that we should rely more on scoring, and start with a coarser pattern right from the beginning? Stefan