From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by inbox.vuxu.org (Postfix) with ESMTP id 22D822132D for ; Tue, 13 Feb 2024 09:53:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZoXZ-00076F-UR; Tue, 13 Feb 2024 03:53:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZoXZ-00075p-0Y for info-gnus-english@gnu.org; Tue, 13 Feb 2024 03:53:21 -0500 Received: from mail.cafax.se ([192.71.228.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZoXX-00086K-BS for info-gnus-english@gnu.org; Tue, 13 Feb 2024 03:53:20 -0500 Received: from floptop.liman.net (78-70-145-199-no42.tbcn.telia.com [78.70.145.199]) (Authenticated sender: liman@cafax.se) by mail.cafax.se (Postfix) with ESMTPSA id 41682482D2 for ; Tue, 13 Feb 2024 09:53:15 +0100 (MET) Received: from floptop.liman.net (localhost [IPv6:::1]) by floptop.liman.net (Postfix) with ESMTP id 8935C2A36334 for ; Tue, 13 Feb 2024 09:53:14 +0100 (CET) (envelope-from info-gnus-english@cafax.se) From: Lars-Johan Liman To: info-gnus-english@gnu.org Subject: Re: Strange line-spacing in headers? [SOLVED] In-Reply-To: <22o7clwrq5.fsf@floptop.liman.net> (Lars-Johan Liman's message of "Mon, 12 Feb 2024 17:51:46 +0100") References: <227cjad3m9.fsf@floptop.liman.net> <87y1bqezf8.fsf@ucl.ac.uk> <22ttmex7rf.fsf@floptop.liman.net> <22o7clwrq5.fsf@floptop.liman.net> Date: Tue, 13 Feb 2024 09:53:14 +0100 Message-ID: <22a5o4rbid.fsf@floptop.liman.net> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=192.71.228.22; envelope-from=info-gnus-english@cafax.se; helo=mail.cafax.se X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Going back to my original posting. SUCCESS! =F0=9F=99=82 TL;DR; Use: (custom-set-faces '(gnus-header ((t)))) Long version: First I solved _one_ problem. After much poking, testing, and reading I figured out that info-gnus-english@cafax.se 2024-02-11 23:42 [+0100]: > (custom-set-faces > '(gnus-header ((t (:inherit fixed-pitch))))) actually took me to a different font than I expected. "Fixed-pitch" is not my default font used in the article text*. If I told GNUS to use the default font instead, the line spacing ended up correct. So _that_ problem was solved by using (custom-set-faces '(gnus-header ((t (:inherit default))))) So far, so good. But it came with a snag. (There is always one ... =F0=9F= =98=89) Normally some words in the headers (e.g., sender's name and e-mail address, other e-mail addresses, etc.) are shown in bold. Not so any more. The color was correct, but not the weight and slant. I had to figure out how to make that be inherited correctly from the respective definitions. Thanks to a typo I did, which brought me into the debugger, but with the side-effect that the Article buffer came out as I wanted, I have now come up with the following recipe that works for me. By setting the property list to nothing, everything is set to "default", which somehow makes all the pieces of the tetris fall into place. The property list should thus be "(t . ())" =3D "(t . nil)" =3D "(t)", so here goes: (custom-set-faces '(gnus-header ((t)))) I hope this helps some Googlers in the future. Thanks for all help! Cheers, /Liman * I use a locally installed custom font as default. It's a variant of Courier called Courier Prime. (Really nice! Do try!) It took me a while to realise that fixed-pitch is coupled to regular Courier, which has a different line height. The two fonts are (to no ones surprise) difficult to distinguish, but Courier Prime is a little "fatter" and easier to read, IMHO.