From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#59347: 29.0.50; `:family` face setting ignored Date: Mon, 21 Nov 2022 14:51:10 +0200 Message-ID: <83bkp04gjl.fsf@gnu.org> References: <83bkp4bfqf.fsf@gnu.org> <83wn7s9txp.fsf@gnu.org> <83pmdk9pat.fsf@gnu.org> <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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2839"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 59347@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 21 13:52:11 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 1ox6HT-0000TG-73 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Nov 2022 13:52:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ox6HL-0008Th-EP; Mon, 21 Nov 2022 07:52:03 -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 1ox6HK-0008TY-RC for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 07:52: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 1ox6HK-000517-Iy for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 07:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ox6HK-0005rX-Ef for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 07:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Nov 2022 12:52: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.166903506922473 (code B ref 59347); Mon, 21 Nov 2022 12:52:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 21 Nov 2022 12:51:09 +0000 Original-Received: from localhost ([127.0.0.1]:45708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ox6GS-0005qO-So for submit@debbugs.gnu.org; Mon, 21 Nov 2022 07:51:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ox6GR-0005q7-LV for 59347@debbugs.gnu.org; Mon, 21 Nov 2022 07:51:08 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ox6GM-0004hJ-BB; Mon, 21 Nov 2022 07:51:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7J3YN/1NFo4p3b6Yk/91/WHyucdHJVj2Ai83jKsTllM=; b=K7XS2BAAB5SQ OwvfrnegfAJhnYA6ZQr9FCZzg58my8gwh9HHq7vFQ0VRcbjiLitD5CxquwjerBrwcPJqdGTrVB5JJ 7uiACCIAm0R7UQWaYb3pS2Ux/G/ZDaVBPku5BTW0VKvz67BgGMVkdfiWx+QW1Kf5NNHRHlTuSxjPE /fMM4b1RS+t/QXN3WF348zMqIwOSHljaRTCqKrWMhl3sKHa+7XkQiW4qaB2+++VELWjEUHayOtpAM 85QkIXQ3yI1Gll3uoyTntnCJLT3Jt7xjVoCNcL33UL/wYl+SUGlCXA58TQTLDj3+djYJiDp/nnhE1 k0ZQ3Asw/Xw0O+6Sc7uuIg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ox6GJ-0002Xr-Kf; Mon, 21 Nov 2022 07:51:01 -0500 In-Reply-To: <7cc9e03786e324ff82ef@heytings.org> (message from Gregory Heytings on Sun, 20 Nov 2022 21:49:46 +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:248522 Archived-At: > Date: Sun, 20 Nov 2022 21:49:46 +0000 > From: Gregory Heytings > cc: monnier@iro.umontreal.ca, 59347@debbugs.gnu.org > > Also, AFAIU, a font whose weight == spec_prop[weight] is in principle > preferred to a font whose weight != spec_prop[weight]. However, a font > whose weight != spec_prop[weight] could in practice be preferred to a font > whose weight == spec_prop[weight] when it is a better match according to > the other sorting criteria (size and width, and possibly type and slant). > How could (and why should) this be changed to make sure that the scoring > will not sometimes prefer the medium weight when the regular weight > exists? I thought the answer to your question would be "adjust the scoring such that what we don't want to happen, doesn't". One way of doing that is by boosting the score when there's an exact match in attributes which we consider "more equal than others". I guess weight is one of them, and perhaps the only one. Btw, another conceptual issue I have with your patch is that it treats 'medium' and 'regular' asymmetrically (AFAIU): if we see 'medium', we also consider 'normal', but not vice versa. Why the asymmetry? why not always consider the other when we see the one?