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: Sun, 20 Nov 2022 20:53:31 +0200 Message-ID: <83pmdh4fv8.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33016"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 59347@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 19:54:21 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 1owpSP-0008R3-GS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 19:54:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owpSC-0006M0-Fu; Sun, 20 Nov 2022 13:54:08 -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 1owpS6-0006Li-Li for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 13:54: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 1owpS6-0002c2-9p for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 13:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owpS6-00074G-5x for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 13:54: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: Sun, 20 Nov 2022 18:54: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.166897041627134 (code B ref 59347); Sun, 20 Nov 2022 18:54:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 20 Nov 2022 18:53:36 +0000 Original-Received: from localhost ([127.0.0.1]:44627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owpRf-00073a-Rc for submit@debbugs.gnu.org; Sun, 20 Nov 2022 13:53:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owpRc-00073L-2J for 59347@debbugs.gnu.org; Sun, 20 Nov 2022 13:53:35 -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 1owpRW-0002ak-R0; Sun, 20 Nov 2022 13:53:26 -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=iXfnaXh6y0ysQ+q427RAlReGKt30i7jqzM4qH8+GCHU=; b=Dmq6vfdkQHKj SlkN7Cx7nROnYSVSRsc7+RIGLBSW5Smgev5twTXOZyyhFn+smkPM5Bp2th1XWITJ0yMbqirma1DZj +cbTUX09ewqT1sUcqvVEAg2d1W6CakUBh98LOEsdUA0sSxGWcKvfi1F3OuylnseAPGm3akxO6Lq7d V8aVzYj1sI+0wmkbLU4KGFc5ZH2rwBAlOuYNt0rMC7y12yYyE/SCbdKsZkfpUVO5RHe59+CALF8RU pLBXiNo/3xLU1Kw1f81+I/BU1JuILoxw5He3t/khqe1OuEEODVqK+fMvYs9CZZKeHktvVf+D/EHc9 5wXEQ0IJtS7Bz3ztjDko7A==; 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 1owpRS-00023f-Q4; Sun, 20 Nov 2022 13:53:26 -0500 In-Reply-To: (message from Stefan Monnier on Sun, 20 Nov 2022 13:30:41 -0500) 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:248457 Archived-At: > From: Stefan Monnier > Cc: Gregory Heytings , 59347@debbugs.gnu.org > Date: Sun, 20 Nov 2022 13:30:41 -0500 > > >> I'd have to investigate this, is it really worth the effort given that a > >> proper fix has already been found? > > I'd like to hear Stefan say that this is fixed on his system as well. > > As mentioned in my other message, it does fix it for me. Good to know, thanks. > > Thanks, it's indeed the other cases that I worry about. We had a lot of > > changes in this area which solved one problem only to create others. > > BTW, when scoring fonts, I'd expect that the different weights get > turned into a number and we then look at the difference between the > requested number and the font's number. We do that, yes. But the problem is not the conversion to numbers, the problem is the balance between the numerical value of a given difference in weight vs the numerical value of a given difference in width or slant. They should follow some reasonable considerations of selecting suitable fonts in various use cases. When we start considering 'normal' in addition to 'medium', or vice versa, we introduce changes into the relative scores of fonts, and the results could be not what we want. > [ tho, to be honest, > I have no idea which of `regular`, `normal`, and `medium` is supposed to > be heavier or lighter. See the beginning off font.c, where the numerical values we use are spelled out. > The same problem can affect the width attribute where many of the possible > choices seem to use just arbitrarily different names for the same thing. We score by values, not by names.