Commit 0b70e87e authored by drott's avatar drott Committed by Commit bot

Test Variations GPOS mark to base placement

Add a reftest using an additional axis VM2B in the variabletest_box
font. The VM2B axis shifts the mark anchor to the left, leading to the
combining mark below box shifting right when the axis parameter is
adjusted from 0 to 1000. As the reference in the ref test, the font now
contains two additional glyphs N and O, which have fixed base anchors at
the middle and right position. A rendering of the M character showing
"m2b pos", followed by COMBINING SQUARE BELOW with VM2B 0, 500, 1000
applied must thus be equal to renderings of the N and O glyph with no
VM2B variation values applied.

BUG=693065
R=behdad, kojii

Review-Url: https://codereview.chromium.org/2850743002
Cr-Commit-Position: refs/heads/master@{#468276}
parent 40a4cdf9
<!DOCTYPE html>
<meta charset="utf-8">
<style>
@font-face {
font-family: variabletest_box;
src: url(../../../http/tests/resources/variabletest_box.ttf);
}
body {
font-family: variabletest_box, sans-serif;
sans-serif;
font-size: 100px;
}
.variations_codepath_trigger {
font-variation-settings: "none" 9999;
}
</style>
<span class="variations_codepath_trigger">M&#x033B;</span> <span class="variations_codepath_trigger">N&#x033B;</span> <span class="variations_codepath_trigger">O&#x033B;</span>
<!DOCTYPE html>
<meta charset="utf-8">
<style>
@font-face {
font-family: variabletest_box;
src: url(../../../http/tests/resources/variabletest_box.ttf);
}
body {
font-family: variabletest_box, sans-serif;
sans-serif;
font-size: 100px;
}
.gpos_m2b_left {
font-variation-settings: "VM2B" 0;
}
.gpos_m2b_middle {
font-variation-settings: "VM2B" 500;
}
.gpos_m2b_right {
font-variation-settings: "VM2B" 1000;
}
</style>
<!-- The variabletest_box font has an M glyph saying "m2b pos" that combines
with the combining box below. And it has a glyph for combining box below
whose mark anchor can be shifted horizontally using the VM2B axis. The font
also has N and O glyphs which have fixed shifted base anchor points at the
middle and at the right position. In this ref test we compare whether
applying the VM2B axis works as expected and shifts the mark anchor point
left so that the combining mark is placed correctly at the middle and at
the right position. The VM2B rendering must be identical to the
conventional rendering with the fixed base anchor points. -->
<span class="gpos_m2b_left">M&#x033B;</span> <span class="gpos_m2b_middle">M&#x033B;</span> <span class="gpos_m2b_right">M&#x033B;</span>
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