Bug 191151 - WebKit does not activate small-caps for AAT fonts
Summary: WebKit does not activate small-caps for AAT fonts
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-01 07:20 PDT by Dominik Röttsches (drott)
Modified: 2022-07-01 16:35 PDT (History)
3 users (show)

See Also:


Attachments
WebKit rendering, no small-caps activation for Chancery (31.58 KB, image/png)
2018-11-01 07:21 PDT, Dominik Röttsches (drott)
no flags Details
Expected result, small caps activated for Chancery (31.65 KB, image/png)
2018-11-01 07:21 PDT, Dominik Röttsches (drott)
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Röttsches (drott) 2018-11-01 07:20:00 PDT
1) Go to https://codepen.io/anon/pen/VEoVOp
2) Observe and compare letter shapes in first against second line, third against fourth line

Expected result:
Letter shapes for the word CURSIVE for first and second line differ, as the first and third line should activate and use the small-caps glyphs contained in the Apple Chancery font.

Actual result:
Letter shapes identical between first and second line, the first line has "swashy" glyph terminals for U R V I, while it shouldn't since the small-caps glyphs do not have such ornamental terminals.
Letter shapes differ for 3rd and 4th line since actual small caps are used for OpenType GSUB based small-caps.

This is probably due to small-caps feature detection not recognising the feature in AAT fonts, so WebKit proceeds to synthesise small-caps.
Comment 1 Dominik Röttsches (drott) 2018-11-01 07:21:10 PDT
Created attachment 353596 [details]
WebKit rendering, no small-caps activation for Chancery
Comment 2 Dominik Röttsches (drott) 2018-11-01 07:21:31 PDT
Created attachment 353597 [details]
Expected result, small caps activated for Chancery
Comment 3 Brent Fulgham 2022-07-01 16:35:31 PDT
Safari and Firefox agree on behavior here, Chrome seems to get the expected output.
Comment 4 Radar WebKit Bug Importer 2022-07-01 16:35:48 PDT
<rdar://problem/96321004>