> From: Nicolas Goaziou
> Cc: shingo@gmail.com, 48148-d...@debbugs.gnu.org
> Date: Sun, 02 May 2021 17:56:04 +0200
>
> More than the width of the text, I'm interested in the
> ratio between the width of the text and the width of an underline
> character (assuming monospace).
And that is
Eli Zaretskii writes:
>> From: Nicolas Goaziou
>> Cc: shingo@gmail.com, 48...@debbugs.gnu.org
>> Date: Sun, 02 May 2021 14:18:24 +0200
>>
>> My problem is that I have some string, _which is not displayed anywhere_
>> yet. I need to obtain its real width along with the width of a single
>>
Thank you for the advice. I see that `window-text-pixel-size' returns true
displayed width but I think that's TRT for only the other bug I reported
(bug#48149). These two bugs looks similar but the root causes are completed
different.
This bug (bug#48148) is actually caused by the difference of
> From: Nicolas Goaziou
> Cc: shingo@gmail.com, 48...@debbugs.gnu.org
> Date: Sun, 02 May 2021 14:18:24 +0200
>
> My problem is that I have some string, _which is not displayed anywhere_
> yet. I need to obtain its real width along with the width of a single
> character in order to compute
> Date: Sun, 02 May 2021 20:33:23 +0900
> From: Shingo Tanaka
> Cc: Nicolas Goaziou ,
> shingo@gmail.com,
> 48...@debbugs.gnu.org
>
> This bug (bug#48148) is actually caused by the difference of the width
> detection methods between line 1036 in ox-ascii.el (`length') and
>
Eli Zaretskii writes:
> I'm not sure what kind of example is necessary. How about if you ask
> specific questions about the arguments of that function which you
> don't understand clearly how to use?
Fair enough. However, i don't think my misunderstanding is related to
arguments of that
> From: Nicolas Goaziou
> Cc: Shingo Tanaka , 48...@debbugs.gnu.org
> Date: Sun, 02 May 2021 10:23:34 +0200
>
> > The accurate method of lining up in these cases is to use
> > window-text-pixel-size instead. That function will return the exact
> > width of a string as it will displayed, in
Hello,
Eli Zaretskii writes:
>> Date: Sun, 02 May 2021 08:52:13 +0900
>> From: Shingo Tanaka
>>
>> For example, when the title is "ABCDEF" (each character has width of
>> 2), expected title would be like:
>>
>> ━━━
>> ABCDEF
>>
> Date: Sun, 02 May 2021 08:52:13 +0900
> From: Shingo Tanaka
>
> For example, when the title is "ABCDEF" (each character has width of
> 2), expected title would be like:
>
> ━━━
> ABCDEF
> ━━━
>
>