RESOLVED FIXED 235257
Two bopomofo tone marks are not moved to the correct place in vertical text with a particular bopomofo font
https://bugs.webkit.org/show_bug.cgi?id=235257
Summary Two bopomofo tone marks are not moved to the correct place in vertical text w...
Myles C. Maxfield
Reported 2022-01-14 16:53:19 PST
See https://cmex-30.github.io/Bopomofo_on_Web/testpage/index.html In the last box, these two characters are not placed correctly: - ˫ U+02EB MODIFIER LETTER YANG DEPARTING TONE MARK - ˪ U+02EA MODIFIER LETTER YIN DEPARTING TONE MARK Compare the positioning to Chrome.
Attachments
Reduction (370 bytes, text/html)
2022-01-14 16:56 PST, Myles C. Maxfield
no flags
Patch (2.54 KB, patch)
2022-01-16 13:52 PST, Myles C. Maxfield
darin: review+
Needs attribution for font creator (11.19 KB, patch)
2022-02-02 19:32 PST, Myles C. Maxfield
no flags
Patch for committing (12.45 KB, patch)
2022-02-03 18:21 PST, Myles C. Maxfield
no flags
Radar WebKit Bug Importer
Comment 1 2022-01-14 16:54:08 PST
Myles C. Maxfield
Comment 2 2022-01-14 16:56:12 PST
Created attachment 449233 [details] Reduction
Myles C. Maxfield
Comment 3 2022-01-14 16:56:28 PST
(The attached reduction needs the custom font from https://cmex-30.github.io/Bopomofo_on_Web/testpage/index.html)
Myles C. Maxfield
Comment 4 2022-01-16 13:11:08 PST
For some reason we're getting two different Font objects in FontCascade::drawGlyphBuffer() which point to the same CTFont
Myles C. Maxfield
Comment 5 2022-01-16 13:15:02 PST
m_font.glyphDataForCharacter() is reporting different Font objects for those characters. They point to the same CTFont though.
Myles C. Maxfield
Comment 6 2022-01-16 13:29:48 PST
I see what's happening. The FontCascade::isCJKIdeographOrSymbol() check in FontCascadeFonts::glyphDataForVariant() is returning true for the modifiers but false for the regular characters.
Myles C. Maxfield
Comment 7 2022-01-16 13:52:26 PST
Darin Adler
Comment 8 2022-01-16 13:55:21 PST
Comment on attachment 449287 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=449287&action=review > Source/WebCore/ChangeLog:16 > + No new tests because this requires a custom font to test. We need to do something about this; maybe make some more custom fonts for the WebKit test suite. That situation is high risk for the project, I think. I’d even like to see this kind of thing tested in WPT.
Myles C. Maxfield
Comment 9 2022-02-02 19:32:21 PST
Created attachment 450730 [details] Needs attribution for font creator
Myles C. Maxfield
Comment 10 2022-02-03 18:21:50 PST
Created attachment 450845 [details] Patch for committing
Myles C. Maxfield
Comment 11 2022-02-03 18:53:23 PST
Note You need to log in before you can comment on or make changes to this bug.