GNU bug report logs - #38485
Customizing glyph widths

Previous Next

Package: emacs;

Reported by: Clément Pit-Claudel <cpitclaudel <at> gmail.com>

Date: Wed, 4 Dec 2019 04:24:01 UTC

Severity: normal

Full log


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

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Clément Pit-Claudel <cpitclaudel <at> gmail.com>,
 38485 <at> debbugs.gnu.org
Subject: Re: bug#38485: Customizing glyph widths
Date: Wed, 4 Dec 2019 22:57:01 -0500
[Message part 1 (text/plain, inline)]
> I don't think I understand the rationale for using a face.  It sounds
> like a subset of the general case, and why would someone want this
> alignment only for one special face?

What Clément want and what I want are not quite similar. For my purpose, I want my text tables in org mode to be aligned even there is Chinese characters in it. For example, with out alignment (in GUI):



With alignment (in terminal):


However, I generally use variable-pitch everywhere else in a Org file. Because variable-pitch are generally prettier.

> Using a face also means that the same characters from a larger font
> will not be aligned.

For me personally, that’s ok. I can just use a smaller font.


But again, I just want to know if such a feature exists or is easily hackable. If not, I can live without it. Clément’s idea seems doable, though. You just need a local variable that maps glyph’s unicode to the intended width, if I understand him correctly.

Yuan

[Message part 2 (text/html, inline)]
[Screen Shot 2019-12-04 at 10.17.47 PM.png (image/png, inline)]
[Screen Shot 2019-12-04 at 10.18.37 PM.png (image/png, inline)]

This bug report was last modified 5 years and 195 days ago.

Previous Next


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