help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Enclosing text in a box


From: Heime
Subject: Re: Enclosing text in a box
Date: Wed, 16 Nov 2022 14:51:24 +0000

------- Original Message -------
On Wednesday, November 16th, 2022 at 2:47 PM, Eli Zaretskii <eliz@gnu.org> 
wrote:


> > From: Yuri Khan yuri.v.khan@gmail.com
> > Date: Wed, 16 Nov 2022 21:11:04 +0700
> > Cc: help-gnu-emacs@gnu.org
> > 
> > On Wed, 16 Nov 2022 at 20:59, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > Using 'length' to measure the width of text on display is not
> > > reliable, because there are characters of different width. It is
> > > better to use 'string-width' or 'string-pixel-width' instead.
> > 
> > The next stumbling point is going to be “make-string does the wrong
> > thing when passed 17.237 as the count”, without an explanation as to
> > what the right thing would be. (I don’t know either.)
> 
> 
> Why would sane code call make-string with such an argument?

The premise seems to be that "string-width" returns it.  I would like to
have the ability to pass unicode characters.



reply via email to

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