unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: 46971@debbugs.gnu.org
Subject: bug#46971: 28.0.50; Fontifications in Info buffers break alignment in @multitable
Date: Wed, 06 Oct 2021 07:14:52 +0300	[thread overview]
Message-ID: <87ilyan60z.fsf@protesilaos.com> (raw)
In-Reply-To: <CADwFkmnZ9GdU+AQ2P6NATvpUu9cak_nNYsj+rhY40i-BvK9abw@mail.gmail.com>

On 2021-10-05, 20:43 -0400, Stefan Kangas <stefan@marxist.se> wrote:

> Protesilaos Stavrou <info@protesilaos.com> writes:
>
>> The reason you are getting two distinct fonts is because the
>> 'Info-quoted' face is inheriting from 'fixed-pitch'.
>>
>> Does the alignment get fixed if you make fixed-pitch use the same font
>> as the default?  Such as with this:
>>
>>     (set-face-attribute 'fixed-pitch nil
>>                         :family (face-attribute 'default :family)
>>                         :height (face-attribute 'default :height))
>
> Interesting!  Yes, that fixes the issue here.

There is an option in the modus-themes 1.6.0 (emacs-28) that can disable
this behaviour of some faces inheriting from 'fixed-pitch':
'modus-themes-no-mixed-fonts'.

In my upstream repo I have decided to make that opt-in, instead of
opt-out, seeing as it can create surprising results (as in this case).
So the new option is 'modus-themes-mixed-fonts', which is nil by
default.

Do you think this is something that should be patched for the emacs-28
branch?  Otherwise I will sync my changes with 'master' when I release
the next version (maybe in a month from now).

-- 
Protesilaos Stavrou
https://protesilaos.com





  reply	other threads:[~2021-10-06  4:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-06 17:16 bug#46971: 28.0.50; Fontifications in Info buffers break alignment in @multitable Eli Zaretskii
2021-09-26 14:34 ` Stefan Kangas
2021-10-02  4:56   ` Protesilaos Stavrou
2021-10-06  0:43     ` Stefan Kangas
2021-10-06  4:14       ` Protesilaos Stavrou [this message]
2021-10-06 12:34         ` Eli Zaretskii
2021-10-06 13:53 ` bug#46971: 28.0.60; [PATCH] Disable modus-themes font mixing by default (bug#46971) Protesilaos Stavrou

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87ilyan60z.fsf@protesilaos.com \
    --to=info@protesilaos.com \
    --cc=46971@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).