Files
sousa-gecko/testing/web-platform/tests/css/css-fonts/variations/variable-gpos-avar2-ref.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

39 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Avar2 GPOS Variable Kerning Reference</title>
<style>
@font-face {
font-family: 'AvarTestFont';
src: url('../resources/avar2_kern_test.ttf') format('truetype');
}
.pair {
font-family: 'AvarTestFont';
font-size: 50px;
line-height: 2.3;
}
</style>
</head>
<body>
<!-- Pair 1: Default (XKRN 0, YKRN 0) -->
<div class="pair" style="font-variation-settings: 'XKRN' 0.0, 'YKRN' 0.0;">&#x2316;&#x2316;</div>
<!-- Pair 2: XKRN 0.133975, YKRN 0.5 -->
<div class="pair" style="font-variation-settings: 'XKRN' 0.133975, 'YKRN' 0.5;">&#x2316;&#x2316;</div>
<!-- Pair 3: XKRN 0.5, YKRN 0.866025 -->
<div class="pair" style="font-variation-settings: 'XKRN' 0.5, 'YKRN' 0.866025;">&#x2316;&#x2316;</div>
<!-- Pair 4: XKRN 1.0, YKRN 1.0 -->
<div class="pair" style="font-variation-settings: 'XKRN' 1.0, 'YKRN' 1.0;">&#x2316;&#x2316;</div>
<!-- Pair 5: XKRN 1.0 with space in between crosses, no kerning. -->
<div class="pair">&#x2316; &#x2316;</div>
</body>
</html>