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 03:06:48 -0400 Message-ID: <878rmymh9z.fsf@gnu.org> References: <874jxpjl43.fsf@gnu.org> <83pmgdnfhs.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="7993"; 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 09:09:14 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 1oV6EM-0001ni-26 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 09:09:14 +0200 Original-Received: from localhost ([::1]:57104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oV6EJ-000820-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 03:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV6DE-0007Zi-U5 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 03:08:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57583) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oV6DD-00016Z-25 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 03:08:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oV6DC-00015x-HA for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 03:08: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 07:08: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.16623616244136 (code B ref 57555); Mon, 05 Sep 2022 07:08:02 +0000 Original-Received: (at 57555) by debbugs.gnu.org; 5 Sep 2022 07:07:04 +0000 Original-Received: from localhost ([127.0.0.1]:46282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oV6CE-00014P-0R for submit@debbugs.gnu.org; Mon, 05 Sep 2022 03:07:04 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42164) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oV6C8-000142-EQ for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 03:07:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52194) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV6C3-00012m-56 for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 03:06:51 -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=SoEeggCCNBCvZP3g7MvrIl76OoXE8QM0vXCXGwvQXgQ=; b=XrqmLxMixwoGXHOuIYz8 JmrKv1jJanlx5uGhsohE/XL4VUn+Fg65awDFsuKAsHwdcVTNua/nK0AsDB+9z0t4e8DvFg+AvdTjL sTzVjhTz6zKpDcSX2/mDTTpszeUdHxBLqckf5oncYm6Odw8KYmvsv5TiKdvN5NH+VAUpLZ/fQLvsX kumXi/BVH1XUIqet3vyZ+KutcUiLGH+pTspNCUuTavS/0kAFsFG23cI/mrjneMRR2O4gzmsuprmo7 z9fPoTDt3uJeGTntrl96a+M6MvE2t9uh5VL3fdZymwzTexQDwO3aLuAmML4wE8ZUqn70xqzz5CsGA RodrCJuUQwnRAw==; Original-Received: from bras-base-toroon473mw-grc-20-174-89-30-44.dsl.bell.ca ([174.89.30.44]:59806 helo=langa) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oV6C1-00075w-Ld; Mon, 05 Sep 2022 03:06:50 -0400 In-Reply-To: <83pmgdnfhs.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:241533 Archived-At: 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: https://kelar.org/~bandali/tmp/20220903/etc-fonts.tar.gz Beyond that, I have a few additional local (user-specific) settings in in my ~/.config/fontconfig/fonts.conf, but this is the main relevant excerpt, where I specify that sans-serif should be GNU FreeSans (and this works basically in all applications, including Firefox-based browsers, and until recently Emacs as well): sans-serif FreeSans Sahel WOL Liberation Sans Roboto The complete file is available from: https://kelar.org/~bandali/tmp/20220903/fonts.conf > 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. > 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. > 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). Thanks again, -a