GNU bug report logs -
#48148
27.2; ox-ascii breaks TITLE line wrongly when 2 width char is used
Previous Next
Reported by: Shingo Tanaka <shingo.fg8 <at> gmail.com>
Date: Sat, 1 May 2021 23:53:02 UTC
Severity: normal
Found in version 27.2
Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 48148 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> 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 function.
>> AFAIU, `window-text-pixel-size' returns the size of the window
>
> No, it returns the size of _text_ when displayed in a window.
True.
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 the length argument in `make-string'.
I may be missing something obvious.
> I didn't mean text-width, I meant the use of string-width: it should
> be replaced by a call to window-text-pixel-size.
`string-width' applies to a string. `window-text-pixel-size' doesn't.
This is the root of my misunderstanding, I guess.
Regards,
This bug report was last modified 4 years and 16 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.