Bug 251318 - [IFC] Incorrect run width when kerning (and ligature) is present
Summary: [IFC] Incorrect run width when kerning (and ligature) is present
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-28 07:52 PST by zalan
Modified: 2023-02-04 07:53 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2023-01-28 07:52:22 PST
When soft wrap opportunity is present between non-whitespace characters, we split them up and measure them individually. However we later join them together when they end up on the same line. At this point we should re-measure these adjoining runs to account for kerning (and ligature).
This mismatching in the total width of the run may produce incorrect behavior when painting (e.g. selection hairline gap see bug 220548)
Comment 1 Radar WebKit Bug Importer 2023-02-04 07:53:18 PST
<rdar://problem/105041199>