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: Mon, 05 Sep 2022 14:57:16 +0300 Message-ID: <834jxmkp9f.fsf@gnu.org> References: <874jxpjl43.fsf@gnu.org> <83pmgdnfhs.fsf@gnu.org> <878rmymh9z.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38975"; 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 Mon Sep 05 14:28:57 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 1oVBDl-000A0H-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 14:28:57 +0200 Original-Received: from localhost ([::1]:43420 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVBDk-00043P-4E for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 08:28:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVAjq-0006WY-8O for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 07:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVAjp-0006Mf-VC for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 07:58:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVAjp-0006dB-Lo for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 07:58: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: Mon, 05 Sep 2022 11:58: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.166237906725464 (code B ref 57555); Mon, 05 Sep 2022 11:58:01 +0000 Original-Received: (at 57555) by debbugs.gnu.org; 5 Sep 2022 11:57:47 +0000 Original-Received: from localhost ([127.0.0.1]:46655 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVAjb-0006ce-BS for submit@debbugs.gnu.org; Mon, 05 Sep 2022 07:57:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36140) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVAjZ-0006cQ-Qc for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 07:57:46 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVAjU-0006Ea-JO for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 07:57:40 -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=/2DcOZbEVIO92axN2bDqN6Bv5TD5LUYQfvjhYkrKrkg=; b=XQ3coPAFfGz6 ZmA3znLhERyq5spH21pWR+kMjpGCMFSGH2RCrru/c3I/rPavC2eQfY0buBfq9eIUItvtkwb5Dfhc4 dToYESXZQofoq1oe37U3cwc33Wk7qbmhdYr58ykyMw2yRqW8YGehd5V9/nk2hj3nNUoX3YtV6rpze spWHLvkkx9Di5jUt+COeQ2K7IRFNldKHNCpjwYDovGMr5DXoYDG46nHitcS0Vxr9matwSfI2oPDvX Z7QBxXABfAF4S1YUS6ek+q1GiEfdFgnsjfytvU7K5H/UsdakmKxPfplh5wmN2mjVOuWY7MYiVy5+t /vih6TdWTYh92fAuIy5ImQ==; Original-Received: from [87.69.77.57] (port=4135 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 1oVAjT-000341-AW; Mon, 05 Sep 2022 07:57:39 -0400 In-Reply-To: <878rmymh9z.fsf@gnu.org> (message from Amin Bandali on Mon, 05 Sep 2022 03:06:48 -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:241553 Archived-At: > From: Amin Bandali > Cc: 57555@debbugs.gnu.org > Date: Mon, 05 Sep 2022 03:06:48 -0400 > > Eli Zaretskii writes: > > [...] > > > > 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. > > Thanks for your reply, Eli. Globally, I'm basically using the default > font setup that Trisquel GNU/Linux comes with. Here is a tarball of > the /etc/fonts/ directory on my system: Thanks, but I meant the font setup specific to Emacs, i.e.: . any set-fontest-font calls in your init files . any set-frame-font calls or any other face-related calls in your init files that could affect the font selection Sorry for my imprecise wording. > > Also, do you have the medium (not regular) variant of the GNU FreeSans > > font installed? If not, can you install it and try again? > > As far as I can tell, GNU FreeSans does not have a medium variant; > only regular, bold, oblique, and bold oblique: > > $ ls /usr/share/fonts/truetype/freefont/FreeSans*.ttf > /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf > /usr/share/fonts/truetype/freefont/FreeSansBold.ttf > /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf > /usr/share/fonts/truetype/freefont/FreeSans.ttf > > I suppose what might be happening here is that Emacs now tries to use > a medium variant for the variable-pitch GNU FreeSans as well (even > though I'd expect that 'medium' to only apply to the font I explicitly > mentioned it for, i.e. Source Code Pro), which does not have such a > variant, and then it falls all the way back to "misc-fixed". What is > a bit curious, though, is that this doesn't seem to affect italic > variable-pitch text, and Emacs correctly picks GNU FreeSans oblique > for that just fine. I think this means that Emacs gives greater importance to consistency in weight than to consistency of the family. Not sure if that is TRT. > Right. For what it's worth, I find Emacs picking misc-fixed for > variable-pitch text more than just a minor annoyance: for long hours > of use, I find misc-fixed it considerably less comfortable to my eyes > than GNU FreeSans (for proportional/variable-pitch) or Source Code Pro > medium (for monospace). Can't you customize the variable-pitch face to specify the FreeSans family, or even to specify the exact font you want Emacs to use? That should allow you to override any built-in heuristics that Emacs uses when it has no other restrictions.