From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.bugs Subject: bug#57555: 29.0.50; variable-pitch font issue with medium weight default font Date: Mon, 05 Sep 2022 11:08:10 -0400 Message-ID: <87y1uxg8px.fsf@gnu.org> References: <874jxpjl43.fsf@gnu.org> <83pmgdnfhs.fsf@gnu.org> <878rmymh9z.fsf@gnu.org> <834jxmkp9f.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="20721"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57555@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 05 17:09:26 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 1oVDj4-0005A3-6U for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 17:09:26 +0200 Original-Received: from localhost ([::1]:44644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVDj2-0004gR-O9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 11:09:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVDih-0004gG-3j for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 11:09:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVDig-0006iD-NZ for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 11:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVDig-0007pi-95 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 11:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Sep 2022 15:09:02 +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.166239049830053 (code B ref 57555); Mon, 05 Sep 2022 15:09:02 +0000 Original-Received: (at 57555) by debbugs.gnu.org; 5 Sep 2022 15:08:18 +0000 Original-Received: from localhost ([127.0.0.1]:48612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVDhy-0007oe-FY for submit@debbugs.gnu.org; Mon, 05 Sep 2022 11:08:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVDhw-0007oR-VD for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 11:08:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:49632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVDhr-0006d8-Nm for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 11:08:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=jsMU6JeGSZjYqd9904IizzkbkW8FrjQs0EkT/acPv9U=; b=mzcoYRH8X7NyRy+4LvC3 MwgvmMdc/3B7+R0m0BW/AFcKWuOr3ahq5QIINmPdGd07x/hpTA+xmJMgZTjw3VkRtzBwyu4eVWKXK FqFCJj58J2vMRg3Qs48GsOBLg1uzvmctjQRPKB5zAtRFErxvVDlxsf8KNolv9JRUHyYSmanOy84hQ yghVvLrvxdT7zOeg4VqdCqoqBta0VPS56LMBjkI4gvvPfwfmuOUi4fL9hRbm19yvS4k3tJM2QHsSR cOZuMJTc/is0DkxM4lhFSCqv4yYGhWFyhp/Ynn0DWIWeKMkFhjAaaUR0Si5ZGfDEoTwop8fAZyy7j yR/48Enz4FXf0g==; Original-Received: from bras-base-toroon473mw-grc-20-174-89-30-44.dsl.bell.ca ([174.89.30.44]:39804 helo=langa) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVDhr-0003Kk-Aa; Mon, 05 Sep 2022 11:08:11 -0400 In-Reply-To: <834jxmkp9f.fsf@gnu.org> 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:241571 Archived-At: Eli Zaretskii writes: >> 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. Ah, right. No problem. :-) Other than setting the Emacs font from Xresources (though I also did try with set-frame-font per my initial email, with the same results), this is pretty much all I have in my init file that's related to fonts: (when (display-graphic-p) (set-fontset-font t 'arabic "Vazir")) And further down: (when (display-graphic-p) (with-eval-after-load 'faces (let ((grey "#e7e7e7")) (set-face-attribute 'fixed-pitch nil :family "Source Code Pro") (set-face-attribute 'mode-line nil :background grey :inherit 'fixed-pitch)))) [...] > > 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. Hmm, right. That may indeed not be TRT: at least in this case (and with various other fonts I've tried/used in the past), their weights don't necessarily match. For instance, I find Source Code Pro's regular weight way too thin, and I prefer to use its medium weight wherever possible. It's more readable and much more closely matches the regular weight of GNU FreeSans and most other sans fonts on my machine. >> 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. > This indeed doesn't seem to work anymore. With the following, (set-face-attribute 'variable-pitch nil :family "FreeSans") Emacs picks/uses Source Code Pro medium for variable-pitch (confirmed visually and with describe-char), even though describe-face for variable-pitch shows the family set as "FreeSans". This used to work before, but not anymore.