Reland: Enable small-caps font feature in AAT system fonts on Mac
Previously reviewed in: https://chromium-review.googlesource.com/c/chromium/src/+/1353927 Reverted in: https://chromium-review.googlesource.com/c/chromium/src/+/1354411 Enable unit-test, but only for Mac OS 10.13 and above due to fonts before this version not supporting small-caps. Shaping code relies on feature detection to determine whether the font has small-caps support or not. If not, small capitals are synthesized from uppercased letters with scaled-down font size. Add feature detection for AAT fonts on Mac. Now the shaping code can enable the built-in small-caps glyphs for a set of system font that have them. Tests: open_type_caps_support_test.cc unit test for feature detection, fast/text/small-caps-aat.html layout test. Bug: 900955 Change-Id: I354eea0c0d7e5fec40b508df85708933d2c0e06a Reviewed-on: https://chromium-review.googlesource.com/c/1355168 Commit-Queue: Dominik Röttsches <drott@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#613126}
Showing