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#57555: 29.0.50; variable-pitch font issue with medium weight default font Date: Sat, 03 Sep 2022 09:23:11 +0300 Message-ID: <83pmgdnfhs.fsf@gnu.org> References: <874jxpjl43.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35038"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 57555@debbugs.gnu.org To: Amin Bandali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 03 08:25:08 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 1oUMaa-0008s0-5W for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 08:25:08 +0200 Original-Received: from localhost ([::1]:54372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oUMaW-0006rV-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Sep 2022 02:25:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUMZb-0006rL-Qp for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 02:24:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oUMZW-0006fG-Aj for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 02:24:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oUMZV-0006Ic-PT for bug-gnu-emacs@gnu.org; Sat, 03 Sep 2022 02:24:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Sep 2022 06:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57555 X-GNU-PR-Package: emacs Original-Received: via spool by 57555-submit@debbugs.gnu.org id=B57555.166218622624194 (code B ref 57555); Sat, 03 Sep 2022 06:24:01 +0000 Original-Received: (at 57555) by debbugs.gnu.org; 3 Sep 2022 06:23:46 +0000 Original-Received: from localhost ([127.0.0.1]:40839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUMZG-0006I9-4J for submit@debbugs.gnu.org; Sat, 03 Sep 2022 02:23:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUMZE-0006Hu-4s for 57555@debbugs.gnu.org; Sat, 03 Sep 2022 02:23:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUMZ8-0006a9-Rz for 57555@debbugs.gnu.org; Sat, 03 Sep 2022 02:23:38 -0400 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=coeffRp6GNjaLZFk2wOh7zP3RB3TWNH37dfev2i8Gew=; b=lfhjEgkTzbX9 7AhYsmoQPXtyT/V54EdCK495jy9dc+SgVo6MNuwal4JKztmbBjo20lP7TmyAhG0HW4A2bMWs9s24A bZaa6j2qDDMRvcphQ+bCt9BvDaEjOoJ+l+iFgwHgiNAgBertpMD5N63bVj7D0kOye2ZPqtGZkvxWq iNaLre6Nz/IMORqkG41nKMFHdd4DKB98SLB4WrM8oSLZQX8zIfjqdpNahKiXuLRr2+wbeMBqZN2dW C4o2TyknxbAOLJ+DFe+0sHrxGH3uRqds112h/+Z8WQOxb6YG4xBPWmYXlIg8XLNNvwYLTBQf4BbhO F2+slNNekD18MJ9UGUcQYA==; Original-Received: from [87.69.77.57] (port=2264 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 1oUMZ7-0002le-W0; Sat, 03 Sep 2022 02:23:38 -0400 In-Reply-To: <874jxpjl43.fsf@gnu.org> (message from Amin Bandali on Fri, 02 Sep 2022 21:35:24 -0400) 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:241369 Archived-At: > From: Amin Bandali > Date: Fri, 02 Sep 2022 21:35:24 -0400 > > As of the recent 6b1ed2f2c99a1c2da56c5f434570c438cad6576d, I've been > experiencing an issue where Emacs chooses / falls back on 'misc-fixed' > instead of the correct sans-serif variable-pitch font ('GNU FreeSans', > for me) when I use a custom default font with medium weight. > > Screenshots from before (no issue) and after (with issue) the commit: > > https://kelar.org/~bandali/tmp/20220903/before-6b1ed2f.png > https://kelar.org/~bandali/tmp/20220903/after-6b1ed2f.png > > This happens regardless of whether I set the font via X resources: > > Emacs.font: Source Code Pro Medium-10.5 > > or with Emacs Lisp: > > (set-frame-font "Source Code Pro-10.5:weight=medium" nil t) > > This happens only if I use the medium weight variant, and if I leave > that out and just use Source Code Pro (regular) this doesn't happen. > Also, perhaps strangely enough, the issue seems to only affect the > regular variable-pitch font: e.g. italic variable-pitch is correctly > displayed in sans-serif. Thanks, but please show the font setup you are using; without that, the "instead of the correct sans-serif variable-pitch font" part is impossible to interpret. Also, do you have the medium (not regular) variant of the GNU FreeSans font installed? If not, can you install it and try again? What seems to happen here is that Emacs decides that the font you don't like is a better match than the one you do like. Which is not a serious problem from my POV (as long as the text is legible), just a minor aesthetic annoyance. To fix such annoyances, one must tune one's font configuration. But even if the annoyance stays, it's definitely less serious than the original problem which that commit attempted to fix. Thanks.