Bug 255298

Summary: Object replacement character (0xFFFC) generates null (0) glyph
Product: WebKit Reporter: Vitor Roriz <vitor.roriz>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: gsnedders, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Vitor Roriz
Reported 2023-04-11 12:30:48 PDT
We are getting an empty glyphData object (thus a null glyph (0)) when the input character is the object replacement character (0xFFFC). If such input is decorated with text-emphasis-marker, this will cause the marker not to be painted after https://github.com/WebKit/WebKit/pull/12471 is merged. This is because, the null glyph gets replaced by the deleted glyph (0xFFFF) and after the PR is merged, we no longer will draw markers for associated deleted glyphs. How to reproduce it: <p class="foo">X</p> .foo { writing-mode:vertical-lr; text-combine-upright:all; text-emphasis:filled; }
Attachments
Radar WebKit Bug Importer
Comment 1 2023-04-11 12:31:01 PDT
Sam Sneddon [:gsnedders]
Comment 2 2023-05-05 12:32:56 PDT
*** Bug 256372 has been marked as a duplicate of this bug. ***
Myles C. Maxfield
Comment 3 2023-05-22 14:56:34 PDT
It's totally legit for characters to be mapped to the 0 glyph. The fact that the object replacement character gets mapped to the 0 glyph isn't a bug; it's expected. If we recently added logic that says "the 0 glyph shouldn't get an emphasis mark" then that logic is wrong.
Myles C. Maxfield
Comment 4 2023-06-02 15:43:01 PDT
EWS
Comment 5 2023-06-05 20:02:13 PDT
Committed 264886@main (aba48e65ac8b): <https://commits.webkit.org/264886@main> Reviewed commits have been landed. Closing PR #14642 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.