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: Sun, 20 Nov 2022 13:30:41 -0500 Message-ID: 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> 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="40943"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gregory Heytings , 59347@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 20 19:31: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 1owp5z-000ATt-At for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 20 Nov 2022 19:31:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1owp5s-00016u-8q; Sun, 20 Nov 2022 13:31: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 1owp5q-000153-Rz for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 13:31: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 1owp5q-0006NJ-FA for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 13:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1owp5q-0006Uo-47 for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2022 13:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2022 18:31: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.166896905924962 (code B ref 59347); Sun, 20 Nov 2022 18:31:02 +0000 Original-Received: (at 59347) by debbugs.gnu.org; 20 Nov 2022 18:30:59 +0000 Original-Received: from localhost ([127.0.0.1]:44603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owp5n-0006UX-2o for submit@debbugs.gnu.org; Sun, 20 Nov 2022 13:30:59 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owp5k-0006UL-N9 for 59347@debbugs.gnu.org; Sun, 20 Nov 2022 13:30:57 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7B651440A49; Sun, 20 Nov 2022 13:30:50 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B466E440A1E; Sun, 20 Nov 2022 13:30:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668969044; bh=epwlysr9J6ukE7RCPMypX3x0S+yGXezYiZ46vIyI8hc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=NBRL8oRbeZrCgB6sJA8p9D48bUcT/BqksJAMCfD9IwmvDMdscWKAQGf0Vtx9vN3uY lCVQ5u8gNERAwjIri7oclrVjqCvrXYgExOGBNgi7i4srOXXsY6Hx2n+4MEcfW64fiY NOKV94ePbwpLX/QO+t8FWO1yoztXpYKkBZci/PXnq2JOpOV4wOGpSbP5j2fsocC43c kZ2e5nUOqcMOGzPCFjw2hBoWIU0vVqgc+gWAjs4diUi1MNFdQkLrFzb8lkxFw3bbIT alIcjtPxPzFcwK3BoC389NnoKZRPt8Qs6N+0XGG/u2KkpbB717SbmbPyDZ+2FxQ/mW WHPW97ulsarDQ== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 13290120CE3; Sun, 20 Nov 2022 13:30:44 -0500 (EST) In-Reply-To: <83tu2t4ie9.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 20 Nov 2022 19:58:54 +0200") 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:248454 Archived-At: >> 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. > And yes, I'd still be interested in understanding why asking for > another foundry fixed or worked around the problem. Haven't found that out yet. >> > Yes. We need to make sure the scoring will not now sometimes prefer the >> > medium weight where the regular weight exists and is a better match. >> > Not only should it not reject a legitimate font, but also not prefer >> > another font due to this change. IOW, the change should ideally only >> > affect the cases where the 'medium' weight doesn't exist, and we >> > therefore prefer to use 'regular' rather than reject the family. [...] > 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. This way `medium` and `normal` won't be considered as "equal" but "almost equal" [ tho, to be honest, I have no idea which of `regular`, `normal`, and `medium` is supposed to be heavier or lighter. 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. ] Stefan