Files
sousa-gecko/testing/web-platform/tests/css/css-fonts/variations/variable-avar2-warp.html
T
Dominik Röttsches 5c651eeeb1 Bug 2026707 [wpt PR 58768] - Enable AVAR2 in text shaping, a=testonly
Automatic update from web-platform-tests
Enable AVAR2 in text shaping

Enable processing of version 2 avar font tables in HarfBuzz.

Add a test cases that verifies shaping behavior when avar2 is
applied. The test font contains a control axis CKRN (for "circular
kerning"), which shifts "implementation" axes XKRN and YKRN depending on
the CKRN value. By means of CKRN, in a kerning pair of two crosses, the
second cross moves along a 90 degree arc from horizontally next to the
first cross to vertically above it.

I2S in https://groups.google.com/a/chromium.org/g/blink-dev/c/VCQBQlxEaa8/m/IAzfn-02DgAJ

rvrnTest and DesignSpaceWarpTest fonts helpfully provided
by John “Jake” Armstrong. Thanks.

Bug: 40246300
Change-Id: Ib5fa3300215c1dafd2002db73198c2600858eeaa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7692195
Reviewed-by: Koji Ishii <kojii@chromium.org>
Auto-Submit: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1605402}

--

wpt-commits: 14251e29714253387f371695bb2200c202d0d079
wpt-pr: 58768
2026-04-09 19:28:43 +00:00

43 lines
1.2 KiB
HTML

<!doctype html>
<html class="reftest-wait">
<title>Avar2 Designspace warping tested against avar1 reference</title>
<link rel="help" href="https://www.iso.org/standard/87621.html" />
<link rel="match" href="variable-avar2-warp-ref.html" />
<link rel="mismatch" href="variable-avar2-warp-mismatch.html" />
<meta charset="utf-8" />
<style>
@font-face {
font-family: avar2test_avar2;
src: url(../resources/avar/DesignSpaceWarpTestAvar2[opsz\,wdth\,wght].ttf);
}
body {
font-family: avar2test_avar2, sans-serif;
font-size: 200px;
}
.light-expanded {
font-variation-settings:
"wght" 100,
"wdth" 125;
}
.bold-condensed {
font-variation-settings:
"wght" 900,
"wdth" 75;
}
</style>
<!-- The DesignSpaceWarpTestAvar2 re-implements the DesignSpaceWarpTestAvar1
font, using an avar format 2 VarStore and deltas applied to design axes.
-->
H
<span class="light-expanded">H</span>
<span class="bold-condensed">H</span>
<script>
document.fonts.ready.then(() => {
document.documentElement.classList.remove("reftest-wait");
});
</script>
</html>