emacs-devel
[Top][All Lists]
Advanced

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

Re: Add a function that returns pixel distance between points?


From: Eli Zaretskii
Subject: Re: Add a function that returns pixel distance between points?
Date: Tue, 02 Feb 2021 18:29:15 +0200

> From: Yuan Fu <casouri@gmail.com>
> Date: Mon, 1 Feb 2021 18:00:18 -0500
> Cc: emacs-devel <emacs-devel@gnu.org>
> 
> This code inserts a mini table
> 
> | looooong |
> | world |
> 
> And tries to aligns it to
> 
> | looooong |
> | world    |
> 
> You will notice there are extra white space on the right of the cells, and 
> the table actually looks like this:
> 
> | loooooong    |
> | world        |
> 
> That’s because window-text-pixel-size returned a width that’s larger than the 
> true with of the cells. If you enlarge the line-prefix, the extra space grows.

Hmm... this sounds like some bug in window-text-pixel-size.  Let me
take a closer look.



reply via email to

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