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

Daniel Eden
Reported 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; } ```
Attachments
Screenshot of expected/produced result (526.39 KB, image/png)
2014-06-25 20:56 PDT, Daniel Eden
no flags
Daniel Eden
Comment 1 2014-06-25 20:56:27 PDT
Created attachment 233872 [details] Screenshot of expected/produced result
Benjamin Poulain
Comment 2 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.
diebuche
Comment 3 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)
Radar WebKit Bug Importer
Comment 4 2014-09-02 10:43:33 PDT
Simon Fraser (smfr)
Comment 5 2014-09-02 10:43:55 PDT
Oli Studholme
Comment 6 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)
Myles C. Maxfield
Comment 7 2015-08-18 23:37:33 PDT
*** This bug has been marked as a duplicate of bug 147722 ***
Note You need to log in before you can comment on or make changes to this bug.