Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Lars-Johan Liman <info-gnus-english@cafax.se>
To: info-gnus-english@gnu.org
Subject: Re: Strange line-spacing in headers? [SOLVED]
Date: Tue, 13 Feb 2024 09:53:14 +0100	[thread overview]
Message-ID: <22a5o4rbid.fsf@floptop.liman.net> (raw)
In-Reply-To: <22o7clwrq5.fsf@floptop.liman.net> (Lars-Johan Liman's message of "Mon, 12 Feb 2024 17:51:46 +0100")

Going back to my original posting.

SUCCESS! 🙂

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 ... 😉)

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 . ())" = "(t . nil)" = "(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.


      reply	other threads:[~2024-02-13  8:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-11 22:42 Strange line-spacing in headers? Lars-Johan Liman
2024-02-12  5:13 ` yeti
2024-02-12  7:30   ` Lars-Johan Liman
2024-02-12  8:12     ` yeti
2024-02-12  8:30       ` Lars-Johan Liman
2024-02-12 10:42 ` Eric S Fraga
     [not found]   ` <22ttmex7rf.fsf@floptop.liman.net>
2024-02-12 16:51     ` Lars-Johan Liman
2024-02-13  8:53       ` Lars-Johan Liman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22a5o4rbid.fsf@floptop.liman.net \
    --to=info-gnus-english@cafax.se \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).