bug#48149: 27.2; Wrong underline width when the line char has a width of 2

2021-05-09 Thread Shingo Tanaka
Hi, > Please note that using char-width cannot solve the problem of a > character whose width depends on the font, because char-width is > oblivious to fonts, it only knows about the character's codepoint. I updated my patch proposal as attached to use window-text-pixel-size based on Eli's advice

bug#48149: 27.2; Wrong underline width when the line char has a width of 2

2021-05-02 Thread Eli Zaretskii
> From: Nicolas Goaziou > Date: Sun, 02 May 2021 18:08:50 +0200 > Cc: 48...@debbugs.gnu.org > > > In case of 1), it correctly takes account of the case in which the character > > has a width of 2 in `org-ascii--build-title', by dividing the line width by > > `(char-width under-char)' (line 700-70

bug#48149: 27.2; Wrong underline width when the line char has a width of 2

2021-05-02 Thread Nicolas Goaziou
Hello, Shingo Tanaka writes: > When exporting org-mode document to plain text (either ascii/unicode/utf-8) > with `org-export-dispatch', Emacs inserts lines under headlines, inline > tasks, table rows and titles of the document, TOC, list of listings, list of > tables and footnotes. The problem

bug#48149: 27.2; Wrong underline width when the line char has a width of 2

2021-05-02 Thread Rudolf Schlatte
Eli Zaretskii writes: >> Date: Sun, 02 May 2021 10:12:43 +0900 >> From: Shingo Tanaka >> >> When exporting org-mode document to plain text (either ascii/unicode/utf-8) >> with `org-export-dispatch', Emacs inserts lines under headlines, inline >> tasks, table rows and titles of the document, TOC

bug#48149: 27.2; Wrong underline width when the line char has a width of 2

2021-05-02 Thread Eli Zaretskii
> From: Rudolf Schlatte > Date: Sun, 02 May 2021 10:36:14 +0200 > > > You reported a similar bug already, and I replied there that TRT in > > these cases is to use window-text-pixel-size, which will automatically > > account for the actual width on display of any characters and any > > fonts spec

bug#48149: 27.2; Wrong underline width when the line char has a width of 2

2021-05-02 Thread Eli Zaretskii
> Date: Sun, 02 May 2021 10:12:43 +0900 > From: Shingo Tanaka > > When exporting org-mode document to plain text (either ascii/unicode/utf-8) > with `org-export-dispatch', Emacs inserts lines under headlines, inline > tasks, table rows and titles of the document, TOC, list of listings, list of >