* Strange line-spacing in headers? @ 2024-02-11 22:42 Lars-Johan Liman 2024-02-12 5:13 ` yeti 2024-02-12 10:42 ` Eric S Fraga 0 siblings, 2 replies; 8+ messages in thread From: Lars-Johan Liman @ 2024-02-11 22:42 UTC (permalink / raw) To: info-gnus-english [-- Attachment #1: Type: text/plain, Size: 855 bytes --] Hello gentlepeople! I get my Emacsen from emacsformacosx.com and just upgraded from Emacs-28.2 to Emacs-29.2 on macOS Ventura. I immediately realized that someone had been playing havoc with fonts. It took me a bit of research to find (custom-set-faces '(gnus-header ((t (:inherit fixed-pitch))))) That "kind of works". I do get the fixed-width font I want ( = my default font), but the line-spacning in the displayed headers (To/From/Subject) is different than the line-spacing in the message body. In the header, the lines are further apart. I wonder if that's inherited from the GNUS default font, rather than from the font I've configured? I cannot find where it's adjusted. Does anyone of you happen to know? ... or should I approach this in some totally different way? I append a screenshot for illustration. Best regards, /Liman [-- Attachment #2: Screenshot 2024-02-11 at 23.39.29.png --] [-- Type: image/png, Size: 937994 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Strange line-spacing in headers? 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 10:42 ` Eric S Fraga 1 sibling, 1 reply; 8+ messages in thread From: yeti @ 2024-02-12 5:13 UTC (permalink / raw) To: info-gnus-english [-- Attachment #1: Type: text/plain, Size: 466 bytes --] Lars-Johan Liman <info-gnus-english@cafax.se> writes: > I wonder if that's inherited from the GNUS default font, rather than > from the font I've configured? I cannot find where it's adjusted. Does > anyone of you happen to know? > > ... or should I approach this in some totally different way? > > I append a screenshot for illustration. Interesting! Maybe that depends on the theme loaded? I'm using the Tao theme, still running Emacs27, screenshot attached. [-- Attachment #2: My Little GNUS... --] [-- Type: image/png, Size: 92684 bytes --] [-- Attachment #3: Type: text/plain, Size: 41 bytes --] -- I do not bite, I just want to play. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Strange line-spacing in headers? 2024-02-12 5:13 ` yeti @ 2024-02-12 7:30 ` Lars-Johan Liman 2024-02-12 8:12 ` yeti 0 siblings, 1 reply; 8+ messages in thread From: Lars-Johan Liman @ 2024-02-12 7:30 UTC (permalink / raw) To: yeti; +Cc: info-gnus-english yeti@tilde.institute 2024-02-12 05:55 [+0000]: > Maybe that depends on the theme loaded? That could be, but *I* didn't change anything between Emacs28 and Emacs29, so if it's a new theme, it came with Emacs29. And I still wonder where that knob sits that I need to tweak. ... and I believe it pertains to font properties and "font-lock" stuff (for want of a more precise term), as the line-height differs within the same buffer/window. The search goes on ... 😉 > I'm using the Tao theme, still running Emacs27, screenshot attached. Thanks. You are on some Linux distro, right? (Just curious if it my problem pertains only to macOS.) I wonder what would happen if you were to try that with Emacs29? Cheers, /Liman ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Strange line-spacing in headers? 2024-02-12 7:30 ` Lars-Johan Liman @ 2024-02-12 8:12 ` yeti 2024-02-12 8:30 ` Lars-Johan Liman 0 siblings, 1 reply; 8+ messages in thread From: yeti @ 2024-02-12 8:12 UTC (permalink / raw) To: info-gnus-english [-- Attachment #1: Type: text/plain, Size: 427 bytes --] Lars-Johan Liman <info-gnus-english@cafax.se> writes: > Thanks. You are on some Linux distro, right? (Just curious if it > my problem pertains only to macOS.) The snapshot was from my main notebook still running Debian11, that's the only reason to still be on Emacs27 there. > I wonder what would happen if you were to try that with Emacs29? A snapshot from a fresh (old `~/.emacs*` removed) Emacs29 on XFCE in Voidlinux: [-- Attachment #2: Emacs29 on XFCE --] [-- Type: image/png, Size: 134162 bytes --] [-- Attachment #3: Type: text/plain, Size: 47 bytes --] HTH. -- I do not bite, I just want to play. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Strange line-spacing in headers? 2024-02-12 8:12 ` yeti @ 2024-02-12 8:30 ` Lars-Johan Liman 0 siblings, 0 replies; 8+ messages in thread From: Lars-Johan Liman @ 2024-02-12 8:30 UTC (permalink / raw) To: yeti; +Cc: info-gnus-english yeti@tilde.institute 2024-02-12 08:54 [+0000]: > The snapshot was from my main notebook still running Debian11, that's > the only reason to still be on Emacs27 there. Ack. > A snapshot from a fresh (old `~/.emacs*` removed) Emacs29 on XFCE in > Voidlinux: Thanks! That looks OK. Cheers, /Liman ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Strange line-spacing in headers? 2024-02-11 22:42 Strange line-spacing in headers? Lars-Johan Liman 2024-02-12 5:13 ` yeti @ 2024-02-12 10:42 ` Eric S Fraga [not found] ` <22ttmex7rf.fsf@floptop.liman.net> 1 sibling, 1 reply; 8+ messages in thread From: Eric S Fraga @ 2024-02-12 10:42 UTC (permalink / raw) To: info-gnus-english Hello, On Sunday, 11 Feb 2024 at 23:42, Lars-Johan Liman wrote: > I wonder if that's inherited from the GNUS default font, rather than The easy way to find out is to move point to one of the header lines and then "C-u C-x =" (what-cursor-position but with C-u to ask for all the details)! One of the things this will tell you is the face(s) associated with where point is. For the record, I don't see extra spacing in my gnus article view. -- Eric S Fraga via gnus (Emacs 30.0.50 2023-07-11) on Debian bullseye/sid ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <22ttmex7rf.fsf@floptop.liman.net>]
* Re: Strange line-spacing in headers? [not found] ` <22ttmex7rf.fsf@floptop.liman.net> @ 2024-02-12 16:51 ` Lars-Johan Liman 2024-02-13 8:53 ` Strange line-spacing in headers? [SOLVED] Lars-Johan Liman 0 siblings, 1 reply; 8+ messages in thread From: Lars-Johan Liman @ 2024-02-12 16:51 UTC (permalink / raw) To: info-gnus-english e.fraga@ucl.ac.uk 2024-02-12 10:42 [+0000]: > The easy way to find out is to move point to one of the header lines and > then "C-u C-x =" (what-cursor-position but with C-u to ask for all the > details)! One of the things this will tell you is the face(s) > associated with where point is. AHH!! I've been looking for something along those lines! Will investigate! Many warm thanks! > For the record, I don't see extra spacing in my gnus article view. > -- > Eric S Fraga via gnus (Emacs 30.0.50 2023-07-11) on Debian bullseye/sid Ack. Thanks! Cheers, /Liman ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Strange line-spacing in headers? [SOLVED] 2024-02-12 16:51 ` Lars-Johan Liman @ 2024-02-13 8:53 ` Lars-Johan Liman 0 siblings, 0 replies; 8+ messages in thread From: Lars-Johan Liman @ 2024-02-13 8:53 UTC (permalink / raw) To: info-gnus-english 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. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-02-13 8:53 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 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 ` Strange line-spacing in headers? [SOLVED] Lars-Johan Liman
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).