GNU bug report logs - #55207
29.0.50; tab-bar-format-align-right only works correctly with monospace characters

Previous Next

Package: emacs;

Reported by: Daniel Semyonov <daniel <at> dsemy.com>

Date: Sun, 1 May 2022 15:51:02 UTC

Severity: normal

Found in version 29.0.50

Done: Daniel Semyonov <daniel <at> dsemy.com>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 55207 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 55207 <at> debbugs.gnu.org, daniel <at> dsemy.com
Subject: Re: bug#55207: 29.0.50; tab-bar-format-align-right only works
 correctly with monospace characters
Date: Sun, 01 May 2022 20:01:59 +0200
Juri Linkov <juri <at> linkov.net> writes:

> Thanks for the bug report.  Indeed the property :align-to
> in tab-bar-format-align-right fails to align to the proper width
> when using a variable pitch font.  Unfortunately, I have no idea
> how to fix this.

I am completely unfamiliar with how the tar bar works, but -- can't you
just measure the widths of the elements with string-pixel-width or the
like and use that to compute the alignments?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 79 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.