unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 46971@debbugs.gnu.org
Subject: bug#46971: 28.0.50; Fontifications in Info buffers break alignment in @multitable
Date: Sun, 26 Sep 2021 07:34:24 -0700	[thread overview]
Message-ID: <CADwFkmnF_fGaB4=aCXruLsD=Qu24GQAzPYM-RfuSzRDJqY6c9g@mail.gmail.com> (raw)
In-Reply-To: <831rcsw6cu.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 06 Mar 2021 19:16:01 +0200")

[-- Attachment #1: Type: text/plain, Size: 1897 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

> To reproduce:
>
>   emacs -Q
>   C-u C-h i ../info/elisp.info RET
>   C-s Syntax name

> You should now see the table of syntax categories.  The characters in
> the rightmost column don't align, which looks ugly.
>
> This happens because font-lock is instructed to do this:
>
>   (defvar Info-mode-font-lock-keywords
>     '(("‘\\([‘’]\\|[^‘’]*\\)’" (1 'Info-quoted))))
>
> Thus the quotes and the quoted text use different faces, and if those
> faces use different fonts (as they do by default), the table will not
> be aligned.
>
> One possible solution would be to modify Info-mode-font-lock-keywords
> such that the quotes are also fontified in Info-quoted face.

That fix solves this issue in "emacs -Q" here, but not in my personal
Emacs configuration where I use a different font.

In "emacs -Q" I have these fonts for the column text (1), and the
whitespace in between columns (2), and everything lines up:

  1. ftcrhb:-bitstream-Courier 10
Pitch-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x08)
  2. ftcrhb:-Bits-Bitstream Vera Sans
Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x03)

With my personal configuration, I have these fonts for the column text
(1), and the whitespace in between (2), and the alignment is wrong (see
screenshots below):

  1. ftcrhb:-Bits-Bitstream Vera Sans
Mono-normal-normal-normal-*-21-*-*-*-m-0-iso10646-1 (#xB7)
  2. ftcrhb:-DAMA-Ubuntu
Mono-normal-normal-normal-*-21-*-*-*-m-0-iso10646-1 (#x03)

I don't know if this is relevant, but in "emacs -Q", the cursor stays
the same size when I move it from a character using font 1 to one using
font 2.

With my personal Emacs configuration, the cursor gets noticeably smaller
when I move it from a character using font 1 to one using font 2.  The
attached screenshots demonstrate this effect.

[-- Attachment #2: screenshot1.png --]
[-- Type: image/png, Size: 54001 bytes --]

[-- Attachment #3: screenshot2.png --]
[-- Type: image/png, Size: 56447 bytes --]

  reply	other threads:[~2021-09-26 14:34 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 [this message]
2021-10-02  4:56   ` Protesilaos Stavrou
2021-10-06  0:43     ` Stefan Kangas
2021-10-06  4:14       ` Protesilaos Stavrou
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='CADwFkmnF_fGaB4=aCXruLsD=Qu24GQAzPYM-RfuSzRDJqY6c9g@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=46971@debbugs.gnu.org \
    --cc=eliz@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.
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).