Commit 6c73d460 authored by Ben Wagner's avatar Ben Wagner Committed by Commit Bot

Add wpt test for font feature precedence for 'dlig'.

The new Lato-Medium-Liga font is based on Lato-Medium 3.002 available
at https://github.com/latofonts/lato-source/tree/master/fonts/static/TTF
It is subset with hb-subset with "fiststfi " and the 'fi' ligatures
moved back to 'liga' (version 3.002 moved them to 'dlig'). The crossbar
of 't' in the 'st' ligature was also shorted to ensure that it would not
cover a normal 't'.

The Lato-Medium currently available to the tests is version 2.015 and
lacks a mapping from U+fb06 to the 'st' ligature glyph which was only
accessible through the 'dlig' feature. Lato-Medium 3.002 added this
mapping (required for this new test) but also moved the 'fi' ligatures
to 'dlig' and some existing tests depend on the 'fi' ligatures being in
'liga'.

This tests https://github.com/w3c/csswg-drafts/pull/3430

Change-Id: Iaf0ff1f99f3ec282bacb0e3cb44ede27d47fac5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1294874Reviewed-by: default avatarDominik Röttsches <drott@chromium.org>
Commit-Queue: Ben Wagner <bungeman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791807}
parent 323b182d
......@@ -3451,6 +3451,7 @@ crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftest
crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/counter-styles-3/redefine-builtin.html [ Failure ]
crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-intrinsic-ratio-006v.html [ Failure ]
crbug.com/626703 external/wpt/css/css-fonts/font-feature-resolution-001.html [ Failure ]
crbug.com/626703 external/wpt/css/css-fonts/font-feature-resolution-002.html [ Failure ]
crbug.com/626703 external/wpt/css/css-fonts/font-variant-05.xht [ Failure ]
crbug.com/626703 external/wpt/css/css-fonts/font-variant-06.xht [ Failure ]
crbug.com/626703 external/wpt/css/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-intrinsic-ratio-001v.html [ Failure ]
......
......@@ -8,7 +8,7 @@
<style>
@font-face {
font-family: lato-ffs-;
src: url(support/fonts/Lato-Medium.ttf);
src: url(support/fonts/Lato-Medium-Liga.ttf);
}
.test, .ref {
font-family: lato-ffs-;
......
......@@ -10,16 +10,16 @@
<style>
@font-face {
font-family: lato-ffs-;
src: url(support/fonts/Lato-Medium.ttf);
src: url(support/fonts/Lato-Medium-Liga.ttf);
}
@font-face {
font-family: lato-ffs-0;
src: url(support/fonts/Lato-Medium.ttf);
src: url(support/fonts/Lato-Medium-Liga.ttf);
font-feature-settings: 'liga' off;
}
@font-face {
font-family: lato-ffs-1;
src: url(support/fonts/Lato-Medium.ttf);
src: url(support/fonts/Lato-Medium-Liga.ttf);
font-feature-settings: 'liga' on;
}
.test, .ref {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment