From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51704: 29.0.50; set-fontset-font do not work well with :weight 'normal of font-spec Date: Wed, 10 Nov 2021 00:45:16 +0100 Message-ID: <87o86snbar.fsf@gnus.org> References: <54b63b0b.37ad.17d03710b0b.Coremail.tumashu@163.com> <87a6idq00p.fsf@gnus.org> <1374ad7e.4032.17d0399bbc1.Coremail.tumashu@163.com> <87tuglokb3.fsf@gnus.org> <83ilx15vvw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1920"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: tumashu@163.com, 51704@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 10 00:46:12 2021 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 1mkaoe-0000Le-Gj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Nov 2021 00:46:12 +0100 Original-Received: from localhost ([::1]:38912 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkaoc-0000zD-HH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Nov 2021 18:46:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42772) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkaoU-0000yS-Jv for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 18:46:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkaoU-0000ho-Bj for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 18:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mkaoU-0008Kw-2i for bug-gnu-emacs@gnu.org; Tue, 09 Nov 2021 18:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Nov 2021 23:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51704 X-GNU-PR-Package: emacs Original-Received: via spool by 51704-submit@debbugs.gnu.org id=B51704.163650153332006 (code B ref 51704); Tue, 09 Nov 2021 23:46:02 +0000 Original-Received: (at 51704) by debbugs.gnu.org; 9 Nov 2021 23:45:33 +0000 Original-Received: from localhost ([127.0.0.1]:36221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkao1-0008K9-5L for submit@debbugs.gnu.org; Tue, 09 Nov 2021 18:45:33 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:35982) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mkany-0008Jr-5g for 51704@debbugs.gnu.org; Tue, 09 Nov 2021 18:45:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UoYXMHWvukGVIJTGqjbifHZbXpcPcbmaU1foJdna05s=; b=YpFlY9G7zlE9Ju1m9N7PNHVdNC 41gxZyRc6yoitIvlcBrceUA3AVCWGAqI9C0ktQlosIK8FdQRdsaTW1vH2lCXJoBlF4+5an7up9lFW gO3mBpyLVmi3PScuR0/oejkeD1K8pTbVoa9WaHDHMsnIYl/Fg6rGX8s7BwwqjTBATC7o=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkanm-0007kS-SF; Wed, 10 Nov 2021 00:45:22 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEUlGxNZPSCfZzTl sVjy2bf///9DxbfrAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+ULCRcaKWtziUgAAAG8SURBVDjLbZOB dcMgDERFugCiHcDIXSDGC9Rm/5l6J2GcvJbk9TV8SacTIKK6tioiSbWqL4mlpZ0BCkHGR3KA3TNE zSqTMr8MXHtbblDwx4AAWm+eWswMEOWKg7L3zcWSbY3aObm8fu7nM8CKLhjtQkKJAT57/9FSDEIA qNSXAOXsZzhJlNz7mcMRY26DdmlDDsDNe+CUAPju/bjBGfaG+jlBa5BIyYH2ENEAG7feRGCC4ClX tn7Ric+DYElXNkWOqbFlmc1TpI4f6xZnx6hMkecAViUaSVkqnfyMkdgCwLN85Jw1RDKCxDD+7EMD zY9wwlKs5KAmTXk4CQB3PPvFWDrG5Z2IhIdqvCtf4SSGl/l9mF+iFxEEI1we61ZZ0S3mCXC7rBpP zJ0MABtlbZutzYbIAOYX2FemyDk0klEUu/CAgdOJZ6Tk3bQ9gItEKQ7GM7qDD6pHTzJL8YZB5PDY EJriIrx2Yyag6w3Q8DL6RcdmE3xMdReKHO9j78cEl0rcD+9urkQQI1J9A6i1heW/wF86Hqif2QR8 zb7Lde8rjqThLZc/QCs3rpTbCEI1it2vbXSSxsv/Z6WX/38BegJXrINNen4AAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjEtMTEtMDlUMjM6MjY6NDErMDA6MDBfodNZAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIxLTExLTA5VDIzOjI2OjQxKzAwOjAwLvxr5QAAAABJRU5ErkJggg== X-Now-Playing: Kate Bush's _Remastered (2): Lionheart_: "Coffee Homeground" In-Reply-To: <83ilx15vvw.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 Nov 2021 14:57:55 +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" Xref: news.gmane.io gmane.emacs.bugs:219479 Archived-At: Eli Zaretskii writes: > Can we rethink this incompatible change? Isn't there a way of > achieving the same goal without breaking people's font customizations? > Why was there a need to make 'normal' and 'medium' be different? Because (some) fonts define both a `normal' and `medium' weight, and they are different weights. Previously Emacs couldn't use both. The basic problem is in the font selection mechanism we choose -- if we're asking for `normal' (weight 80) and the font doesn't have a weight in the area of 78-82 (I think it was; it's been a couple of weeks since I looked at this), it'll just give up and say "I can't find the font" instead of choosing the closest weight the font does have. Which would improve the situation significantly for users. I briefly tried to find where this selection actually happens in the font machinery (i.e., whether there's a way to change the range of acceptable weights), but I didn't find it. Do you happen to know where it happens? If not, I can start trying to debug this again. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no