| Summary: | WebKit Lacking font-feature-settings Support | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Eden <dan.eden> | ||||
| Component: | Text | Assignee: | 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: |
|
||||||
Created attachment 233872 [details]
Screenshot of expected/produced result
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. 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) 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) *** This bug has been marked as a duplicate of bug 147722 *** |
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; } ```