From 735f3700f6510608415fd647dc28c0332c11d011 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 30 Jul 2023 22:09:05 +0300 Subject: [PATCH] ; * src/character.c (Fstring_width): Fix last change. --- src/character.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/character.c b/src/character.c index 5b8e99ab64d..4881b221a39 100644 --- a/src/character.c +++ b/src/character.c @@ -470,11 +470,12 @@ consider, and are interpreted as in `substring'. Width of each character in STRING is generally taken according to `char-width', but character compositions and the display table in effect are taken into consideration. -Tabs in are always taken to occupy `tab-width' columns, although they -might take fewer columns depending on the column where they begin. +Tabs in STRING are always assumed to occupy `tab-width' columns, +although they might take fewer columns depending on the column where +they begin on display. The effect of faces and fonts, including fonts used for non-Latin and -other unusual characters, such as emoji, is ignored as well, as are -display properties and invisible text. +other unusual characters, such as emoji, is ignored, as are display +properties and invisible text. For these reasons, the results are just an approximation, especially on GUI frames; for accurate dimensions of text as it will be -- 2.39.2