Bug 156450 - font-feature-settings don't apply to space character
Summary: font-feature-settings don't apply to space character
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: WebKit Nightly Build
Hardware: Mac OS X 10.11
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-04-10 05:16 PDT by taka
Modified: 2016-05-03 14:06 PDT (History)
4 users (show)

See Also:


Attachments
sample html (638 bytes, text/html)
2016-04-10 05:16 PDT, taka
no flags Details
Rendering WebKit Nightly r199279 png image (231.46 KB, image/png)
2016-04-10 05:20 PDT, taka
no flags Details
Rendering TextEdit.app png image (170.02 KB, image/png)
2016-04-10 05:20 PDT, taka
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description taka 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.
Comment 1 taka 2016-04-10 05:20:03 PDT
Created attachment 276103 [details]
Rendering WebKit Nightly r199279  png image
Comment 2 taka 2016-04-10 05:20:56 PDT
Created attachment 276104 [details]
Rendering TextEdit.app  png image
Comment 3 Mark 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)
Comment 4 Radar WebKit Bug Importer 2016-04-20 10:12:25 PDT
<rdar://problem/25831777>
Comment 5 Myles C. Maxfield 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.