Bug 214626

Summary: REGRESSION(r205826): narrowNoBreakSpace (U+202F) has zero width, regardless of font
Product: WebKit Reporter: Myles C. Maxfield <mmaxfield>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED FIXED    
Severity: Normal CC: chi187, dino, jonlee, mmaxfield, simon.fraser, thorton, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Myles C. Maxfield 2020-07-21 21:27:18 PDT
From static void overrideControlCharacters() in Font.cpp:

overwriteCodePoint(narrowNoBreakSpace, zeroWidthSpace);

This is bogus.

Also, this is becoming much more prominent now because a lot of the French unit formatting data in CLDR - and hence in e.g. NSMeasurementFormatter - uses 202F between numeric value and unit, e.g. "37 km"

It works in native content on macOS, and in all other browsers on macOS, but not in WebKit.
Comment 1 Myles C. Maxfield 2020-07-21 21:27:31 PDT
<rdar://problem/65193790>
Comment 2 Myles C. Maxfield 2020-07-21 21:31:51 PDT
Created attachment 404899 [details]
Patch
Comment 3 Myles C. Maxfield 2020-07-21 23:43:45 PDT
Created attachment 404903 [details]
Patch
Comment 4 EWS 2020-07-22 11:28:36 PDT
Committed r264714: <https://trac.webkit.org/changeset/264714>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 404903 [details].