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 14:19:14 -0400 Message-ID: <87edwpfzvh.fsf@gnu.org> References: <874jxpjl43.fsf@gnu.org> <83pmgdnfhs.fsf@gnu.org> <878rmymh9z.fsf@gnu.org> <834jxmkp9f.fsf@gnu.org> <87y1uxg8px.fsf@gnu.org> <83o7vtkeft.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="7825"; 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 20:20:24 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 1oVGhq-0001oU-Ea for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 20:20:22 +0200 Original-Received: from localhost ([::1]:36858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVGhp-0008CL-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Sep 2022 14:20:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVGhW-0008Ao-IZ for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 14:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVGhW-0001UA-90 for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 14:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVGhV-0006Qe-Ra for bug-gnu-emacs@gnu.org; Mon, 05 Sep 2022 14:20:01 -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 18:20: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.166240197324670 (code B ref 57555); Mon, 05 Sep 2022 18:20:01 +0000 Original-Received: (at 57555) by debbugs.gnu.org; 5 Sep 2022 18:19:33 +0000 Original-Received: from localhost ([127.0.0.1]:48801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVGgy-0006Pm-DH for submit@debbugs.gnu.org; Mon, 05 Sep 2022 14:19:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41918) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVGgt-0006PP-4d for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 14:19:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58102) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVGgn-0001S1-T6 for 57555@debbugs.gnu.org; Mon, 05 Sep 2022 14:19:17 -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=GgbU69+vzKVUm8+AwMO2hS1X1UPN6FhvsW39dOTzMPg=; b=AEagyxfz81r3KoruOsG7 NhDIiQMY8z0KyVIfJczGxOxoOiMeWbjMTXfVGTydBWIw7kYM5K65eoRmdu6XcPqtRxmU6LL0qoMGE bZ8QYau5zWREM6OxqtXcdyWiEscL3+ty3TknA2OS97mZGm7MI6HbBx+PhLQuQXDF3mXlhgd+tJaF+ 9D/b4Zu3YGvOp9Tq7XbySaqRX4y71aAc02f3AZPJKLdN2qUYRfsM42SW+Q5LpdGqFbrEldJAW9TR8 /tkjBXhkQkETJV2igNRlItslIemw5NI8oQoHFvjsxOU/5UcY/+67d0pMGAAMQLPAr3mgYXKdfqeE8 CvmgCJVJpcglmg==; Original-Received: from bras-base-toroon473mw-grc-20-174-89-30-44.dsl.bell.ca ([174.89.30.44]:48274 helo=langa) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVGgl-0004CJ-MX; Mon, 05 Sep 2022 14:19:15 -0400 In-Reply-To: <83o7vtkeft.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:241578 Archived-At: Eli Zaretskii writes: >> From: Amin Bandali >> Cc: 57555@debbugs.gnu.org >> Date: Mon, 05 Sep 2022 11:08:10 -0400 >> >> (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)))) > > Does it change anything if you remove the customization of fixed-pitch > face? Removing that did not change anything. [...] > > Even if you set the face's font explicitly by its full XLFD name, not > implicitly via :family? > Ha, so I just tried with the following XLFD: (set-face-font 'variable-pitch "-GNU -FreeSans-*-*-*-*-14-*-*-*-*-0-iso10646-1") And it works, somewhat. Emacs now uses GNU FreeSans, but seemingly only its regular variant. Based on the '*' I specified for the third and fourth fields (WEIGHT_NAME and SLANT), I would expect it to pick GNU FreeSans's other variants (bold, oblique, or bold oblique) where needed, but it doesn't seem to. Here's a screenshot from Gnus, using the above set-face-font call to set the above XLFD: https://kelar.org/~bandali/tmp/20220903/gnus-after-xlfd.png And here's a screenshot from Gnus without that call to set-face-font, without the 6b1ed2f2c99a1c2da56c5f434570c438cad6576d emacs.git commit that introduced this change: https://kelar.org/~bandali/tmp/20220903/gnus-before.png Notice how Emacs used to pick the bold and bold oblique variants for those headers (gnus-before.png), but doesn't do so anymore (gnus-after-xlfd.png).