Bug 251009

Summary: InlineTextBoxes containing Zero Width Joiner, Zero Width Non-Joiner , or  Zero Width No-Break Space must not use simplified text measuring
Product: WebKit Reporter: Vitaly Dyackhov <vitaly>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Vitaly Dyackhov
Reported 2023-01-23 06:38:57 PST
When calculating the width of an InlineTexBox using simplified measuring, we simply sum up the width of every glyph. Some fonts (at least FreeType fonts) specify the non-zero width of `Zero Width Joiner`, `Zero Width Non-Joiner`, and `Zero Width No-Break Space`. Later, during the rendering, these glyphs are skipped causing the `InlineTextBox`es to become wider than they should be.
Attachments
Vitaly Dyackhov
Comment 1 2023-01-23 06:46:58 PST
Radar WebKit Bug Importer
Comment 2 2023-01-30 06:39:16 PST
EWS
Comment 3 2023-01-31 01:53:20 PST
Committed 259618@main (f7b4df2d3a2c): <https://commits.webkit.org/259618@main> Reviewed commits have been landed. Closing PR #8973 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.