emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display certain glyphs with paddings on the side


From: Eli Zaretskii
Subject: Re: Display certain glyphs with paddings on the side
Date: Tue, 03 Dec 2019 20:42:09 +0200

> From: Yuri Khan <address@hidden>
> Date: Wed, 4 Dec 2019 01:36:05 +0700
> Cc: Clément Pit-Claudel <address@hidden>, 
>       Emacs developers <address@hidden>
> 
> On Wed, 4 Dec 2019 at 01:13, Eli Zaretskii <address@hidden> wrote:
> 
> I use composition in prettify-symbols-mode to render a symbol in a
> two-space field, e.g. to visualize a ‘!=’ sequence as a '(?\s (Br .
> Bl) ?\s (Bc . Bc) ?≠) composition. Pretty sure that any CJK glyph, if
> its width is less than two spaces, can also be padded that way. No
> idea how to arrange for the compositions to be used for all CJK
> characters though.

That's easy, but how do you know which glyphs need to be padded and by
how much?

And anyway, doing layout from Lisp is generally not a good idea: at
best you will have slow and fragile layout.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]