Bug 251009 - InlineTextBoxes containing Zero Width Joiner, Zero Width Non-Joiner , or  Zero Width No-Break Space must not use simplified text measuring
Summary: InlineTextBoxes containing Zero Width Joiner, Zero Width Non-Joiner , or  Ze...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-23 06:38 PST by Vitaly Dyackhov
Modified: 2023-01-31 01:53 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Dyackhov 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.
Comment 1 Vitaly Dyackhov 2023-01-23 06:46:58 PST
Pull request: https://github.com/WebKit/WebKit/pull/8973
Comment 2 Radar WebKit Bug Importer 2023-01-30 06:39:16 PST
<rdar://problem/104819130>
Comment 3 EWS 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.