RESOLVED WORKSFORME Bug 213691
[WinCairo][Uniscribe] Katakana texts are unexpectedly wrapped because they don't fit into its own width
https://bugs.webkit.org/show_bug.cgi?id=213691
Summary [WinCairo][Uniscribe] Katakana texts are unexpectedly wrapped because they do...
Fujii Hironori
Reported 2020-06-27 21:16:02 PDT
Created attachment 402981 [details] test case [WinCairo][Uniscribe] Katakana texts are unexpectedly wrapped because they don't fit into its own width
Attachments
test case (708 bytes, text/html)
2020-06-27 21:16 PDT, Fujii Hironori
no flags
[Screenshot] WinCairo port (12.76 KB, image/png)
2020-06-27 21:17 PDT, Fujii Hironori
no flags
[screenshot] Goolge News (Japanese) of WinCairo port (40.90 KB, image/png)
2020-06-27 21:20 PDT, Fujii Hironori
no flags
10 katakana '二' characters in "MS PGothic" (422 bytes, text/html)
2020-06-28 22:15 PDT, Fujii Hironori
no flags
Fujii Hironori
Comment 1 2020-06-27 21:17:56 PDT
Created attachment 402982 [details] [Screenshot] WinCairo port AppleWin doesn't seem to have this issue.
Fujii Hironori
Comment 2 2020-06-27 21:20:55 PDT
Created attachment 402983 [details] [screenshot] Goolge News (Japanese) of WinCairo port The text of logo are unexpectedly wrapped in Goolge News (Japanese) of WinCairo port.
Fujii Hironori
Comment 3 2020-06-28 22:15:50 PDT
Created attachment 403029 [details] 10 katakana '二' characters in "MS PGothic" This issue causes by "MS PGothic" which has an embedded bitmap font and is a proportional font. '二' has 20px width in complex text code path, but 18px width in simple text path in WinCairo. They are 20px width in both code path in AppleWin port. 10 '二' characters are 200px width in AppleWin port both for complex text and simple text code path. AppleWin port is always using TreeType font for "MS PGothic".
Fujii Hironori
Comment 4 2020-06-29 21:55:16 PDT
RenderText::computePreferredLogicalWidths is assuming the sum of all widths of breakable characters is the preferred logical width. I found a similar issue using line-break:anywhere and kerning. Bug 213772 – The preferred logical width of a text with line-break:anywhere doesn't take kerning into account
Fujii Hironori
Comment 6 2020-10-09 14:37:51 PDT
(In reply to Fujii Hironori from comment #3) > Created attachment 403029 [details] > 10 katakana '二' characters in "MS PGothic" This test case should be display in 100% display scaling factor, or zoom out to use the embedded bit map font in high DPI display.
Fujii Hironori
Comment 7 2023-03-07 12:20:07 PST
I don't see this bug anymore. This bug seems to be already fixed by someone. r287971 Bad r289804 Good
Note You need to log in before you can comment on or make changes to this bug.