Bug 134332

Summary: WebKit Lacking font-feature-settings Support
Product: WebKit Reporter: Daniel Eden <dan.eden>
Component: TextAssignee: Myles C. Maxfield <mmaxfield>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, benjamin, diebuche, fred.wang, gzjjgod, jonlee, mitz, mmaxfield, phiw2, simon.fraser, webkit-bug-importer, webkit.org
Priority: P1 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: https://www.dropbox.com/s/4qs9hxh10iq5zka/font-features-demo.zip
Bug Depends on:    
Bug Blocks: 63796    
Attachments:
Description Flags
Screenshot of expected/produced result none

Description Daniel Eden 2014-06-25 20:55:32 PDT
Setting font-feature-settings values in CSS seems to be read and accepted by Safari/WebKit, yet renders as though the value is null.

In the attached screenshot, Chrome’s rendering is the correct and expected result for the below CSS. The right-hand result is the most recent iOS WebKit, though the result is the same in Safari 7, Safari 8, and WebKit nightly (all on OS X 10.9/.10)

Tested CSS (zipped in Dropbox URL):

```
html {
  font-feature-settings: "frac" 1, "kern" 1, "liga" 1, "dlig" 1;
}

h1 {
  font-feature-settings: "frac" 1, "kern" 1, "liga" 1, "dlig" 1, "smcp" 1;
}
```
Comment 1 Daniel Eden 2014-06-25 20:56:27 PDT
Created attachment 233872 [details]
Screenshot of expected/produced result
Comment 2 Benjamin Poulain 2014-06-25 21:40:44 PDT
I am unfamiliar with font-feature-settings. It looks like all the code is there to parse it and resolve the style, but it looks like FontPlatformData ignores the values.

We should consider removing "font-feature-settings" if nobody implements it.
Comment 3 diebuche 2014-09-02 03:49:53 PDT
All major browsers now support font-feature-settings. Webkit is the only engine lacking it (while actually pretending to handle it, but in fact simply ignoring it)
Comment 4 Radar WebKit Bug Importer 2014-09-02 10:43:33 PDT
<rdar://problem/18201710>
Comment 5 Simon Fraser (smfr) 2014-09-02 10:43:55 PDT
http://dev.w3.org/csswg/css-fonts/#font-rend-desc
Comment 6 Oli Studholme 2015-08-18 19:52:51 PDT
Browser support information for each aspect of font-feature-settings is available on The State of Web Type:
http://www.stateofwebtype.com/

e.g. for Small Capitals (font-feature-settings: "smcp"): http://www.stateofwebtype.com/#Small%20Capitals%20(smcp)
Comment 7 Myles C. Maxfield 2015-08-18 23:37:33 PDT

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