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: Eli Zaretskii
Subject: Re: Enclosing text in a box
Date: Wed, 16 Nov 2022 15:58:14 +0200

> From: Alexis Roda <alexis.roda.villalonga@gmail.com>
> Date: Wed, 16 Nov 2022 14:34:09 +0100
> Cc: Heime via Users list for the GNU Emacs text editor 
> <help-gnu-emacs@gnu.org>
> 
> You were almost there, (make-string (length text") ?=)

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.



reply via email to

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