Bug 96982 - Please add support for OpenType alternative style sets, as requested via [-webkit-]font-feature-settings
Summary: Please add support for OpenType alternative style sets, as requested via [-we...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.8
: P2 Enhancement
Assignee: Myles C. Maxfield
URL: http://hsivonen.iki.fi/webm-share/
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 23:45 PDT by Henri Sivonen
Modified: 2018-04-11 11:15 PDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2012-09-17 23:45:15 PDT
Builds tested: Safari 6.0 and WebKit nightly for 2012-09-17 both on OS X 10.8.1.

Steps to reproduce:
1) Load http://hsivonen.iki.fi/webm-share/
2) Search for the word “Wikipedia”.
3) Compare the letter ‘W’ in the words “Wikipedia” and “WebM”.

Actual results:
The ‘W’ in both “Wikipedia” and “WebM” looks the same.

Expected results:
Expected the ‘W’ in “Wikipedia” to have 4 top serifs as in Firefox, Chrome and IE10 and the ‘W’ in “WebM” to have 3 top serifs.

Additional information:
There is markup

<span class="wiki">W</span>ikipedia

and style

.wiki {
  -webkit-font-feature-settings: "ss05" 1;
  -moz-font-feature-settings: "ss05" 1;
  -ms-font-feature-settings: "ss05" 1;
  -o-font-feature-settings: "ss05" 1;
  font-feature-settings: "ss05" 1;
}.


The font subset was created using the popular https://bitbucket.org/philip/font-optimizer/ tool. FontForge complains about one erroneous ligature, but the resulting font passes OpenType sanitization in Firefox and Chrome. Firefox, Chrome, IE10 and Safari are all happy enough with the GPOS table to use ligatures for e.g. “Th” and “Qu”. Even if the font had a minor technical defect, Safari should render the the alternative glyph properly for compatibility with other browsers.
Comment 1 Alexey Proskuryakov 2012-09-18 11:38:44 PDT
I'm told that we don't support font-feature-settings yet, so it's not just one specific case.
Comment 2 Shiki Suen 2016-03-06 11:45:40 PST
I tested WebKit-SVN-r197635 nightly build and have found it supports at least 'palt' feature.