Bug 156450

Summary: font-feature-settings don't apply to space character
Product: WebKit Reporter: taka <taka5765624b6974bz>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: NEW    
Severity: Normal CC: jonlee, mark, mmaxfield, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: OS X 10.11   
Attachments:
Description Flags
sample html
none
Rendering WebKit Nightly r199279 png image
none
Rendering TextEdit.app png image none

taka
Reported 2016-04-10 05:16:05 PDT
Created attachment 276102 [details] sample html font-feature-settings don't apply to space character. Please look at the sample.
Attachments
sample html (638 bytes, text/html)
2016-04-10 05:16 PDT, taka
no flags
Rendering WebKit Nightly r199279 png image (231.46 KB, image/png)
2016-04-10 05:20 PDT, taka
no flags
Rendering TextEdit.app png image (170.02 KB, image/png)
2016-04-10 05:20 PDT, taka
no flags
taka
Comment 1 2016-04-10 05:20:03 PDT
Created attachment 276103 [details] Rendering WebKit Nightly r199279 png image
taka
Comment 2 2016-04-10 05:20:56 PDT
Created attachment 276104 [details] Rendering TextEdit.app png image
Mark
Comment 3 2016-04-19 19:47:49 PDT
I'm having the same problem. I built a font that includes dots in the space and non-breaking space characters which can be activated using Stylistic Set 04. The dots display in other browsers but not in Safari. Live test here: https://dl.dropboxusercontent.com/u/10087441/Atlas%20Web%20Fonts%20wSpace%20160418/visible%20space.html We've noticed the same thing in other fonts where font-feature-settings: tnum; will not substitute the tabular space. Browsers: Safari: Version 9.1 (11601.5.17.1) Tech Preview: Version 9.1.1 (11601.6.15, 11602.1.27)
Radar WebKit Bug Importer
Comment 4 2016-04-20 10:12:25 PDT
Myles C. Maxfield
Comment 5 2016-05-03 14:06:21 PDT
Yeah, this is a pretty bad bug and is due to how we chop up text before we measure it. I really want to fix this, but unfortunately, there is no straightforward way to fix this quickly. I will do it as soon as I can.
Note You need to log in before you can comment on or make changes to this bug.