Bug 211679

Summary: Large spaces appear between words until the text is selected
Product: WebKit Reporter: Saagar Jha <saagar>
Component: TextAssignee: zalan <zalan>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: jmuizelaar, mmaxfield, paul, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.15   
Attachments:
Description Flags
The website before I select any text, with the undesired spaces
none
The spaces go away after I select the text
none
Test reduction none

Description Saagar Jha 2020-05-09 18:34:55 PDT
Created attachment 398951 [details]
The website before I select any text, with the undesired spaces

On some websites, like this one: https://vistaserv.net/blog/90s-fonts-modern-browsers, WebKit puts some large spaces in the middle of a paragraph. If I select the text the spaces go away and WebKit lays it out like it should be.
Comment 1 Saagar Jha 2020-05-09 18:36:16 PDT
Created attachment 398952 [details]
The spaces go away after I select the text
Comment 2 Radar WebKit Bug Importer 2020-05-12 14:06:45 PDT
<rdar://problem/63153074>
Comment 3 Myles C. Maxfield 2020-07-21 22:27:39 PDT
The font doesn't support the space character, so we're falling back to LucidaGrande for that character.
Comment 4 Myles C. Maxfield 2020-07-21 22:28:13 PDT
I'm looking at this bug now.
Comment 5 Myles C. Maxfield 2020-07-21 23:32:58 PDT
Disabling simple line layout fixes this.
Comment 6 zalan 2020-07-22 06:35:37 PDT
Created attachment 404919 [details]
Test reduction
Comment 7 zalan 2020-07-22 06:39:54 PDT
I haven't looked at the code yet, but the test reduction makes me think it is a collapsed whitespace width caching issue in the fast codepath.
Comment 8 zalan 2020-07-22 19:17:38 PDT
I already have a patch on this (see bug 211680)

*** This bug has been marked as a duplicate of bug 211680 ***