forked from unicode-org/text-rendering-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMORX-32.html
74 lines (62 loc) · 4.97 KB
/
MORX-32.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns:ft="https://github.com/OpenType/fonttest"
xmlns:xlink="http://www.w3.org/1999/xlink">
<body>
<h3 id="MORX-32">MORX-32: Insertion At Mark Without SetMark</h3>
<div class="desc">
The <a href="../fonts/TestMORXThirtytwo.ttf">font</a> for this
test case has
an <a href="https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6morx.html"
>AAT Extended Glyph Metamorphosis Table</a>
with a single <em>Glyph Insertion Subtable</em>. Its finite-state machine
contains the following transitions:
</div>
<ul class="desc">
<li>For glyph <em>A</em>, the transition inserts the string <em>INS</em>
before the currently marked glyph.</li>
<li>For glyph <em>B</em>, the transition inserts the string <em>INS</em>
after the currently marked glyph.</li>
<li>For any other glyphs and “end of text”, the transition carries
no flags and performs no insertions.</li>
</ul>
<div class="desc">
The test cases check what happens when inserting glyphs without setting
the mark. See also <a href="https://github.com/harfbuzz/harfbuzz/issues/1195"
>HarfBuzz bug 1195</a>.
</div>
<table>
<tr>
<td> </td>
<td><em>A</em></td>
<td><em>XAY</em></td>
<td><em>B</em></td>
<td><em>XBY</em></td>
</tr>
<tr>
<th>Expected</th>
<td class="expected" ft:id="MORX-32/1" ft:render="A"
ft:font="TestMORXThirtytwo.ttf"><svg version="1.1" viewBox="0 -200 830 1200"><symbol id="MORX-32/1.A" overflow="visible"><path d="M151,-28 Q30,-28 30,94 L30,620 Q30,742 151,742 L678,742 Q800,742 800,620 L800,94 Q800,-28 678,-28 Z M391,386 Q409,454 415,491 Q419,468 434,411 L440,386 L457,322 L375,322 Z M353,236 L479,236 L498,163 L613,163 L485,552 L345,552 L218,163 L333,163 Z" /></symbol><use x="0" y="0" xlink:href="#MORX-32/1.A" /></svg></td>
<td class="expected" ft:id="MORX-32/2" ft:render="XAY"
ft:font="TestMORXThirtytwo.ttf"><svg version="1.1" viewBox="0 -200 1526 1200"><symbol id="MORX-32/2.X" overflow="visible"><path d="M9,527 L116,527 L181,417 L243,527 L353,527 L240,345 L361,170 L250,170 L180,282 L111,170 L2,170 L121,353 Z" /></symbol><symbol id="MORX-32/2.A" overflow="visible"><path d="M151,-28 Q30,-28 30,94 L30,620 Q30,742 151,742 L678,742 Q800,742 800,620 L800,94 Q800,-28 678,-28 Z M391,386 Q409,454 415,491 Q419,468 434,411 L440,386 L457,322 L375,322 Z M353,236 L479,236 L498,163 L613,163 L485,552 L345,552 L218,163 L333,163 Z" /></symbol><symbol id="MORX-32/2.Y" overflow="visible"><path d="M0,527 L105,527 L166,395 L228,527 L332,527 L215,310 L215,170 L118,170 L118,307 Z" /></symbol><use x="0" y="0" xlink:href="#MORX-32/2.X" /><use x="364" y="0" xlink:href="#MORX-32/2.A" /><use x="1194" y="0" xlink:href="#MORX-32/2.Y" /></svg></td>
<td class="expected" ft:id="MORX-32/3" ft:render="B"
ft:font="TestMORXThirtytwo.ttf"><svg version="1.1" viewBox="0 -200 830 1200"><symbol id="MORX-32/3.B" overflow="visible"><path d="M151,-28 Q30,-28 30,94 L30,620 Q30,742 151,742 L678,742 Q800,742 800,620 L800,94 Q800,-28 678,-28 Z M439,163 Q508,163 547,193 Q587,224 587,277 Q587,319 567,339 Q548,359 518,366 L518,369 Q544,376 561,397 Q579,419 579,454 Q579,502 542,526 Q506,550 424,550 L289,550 L289,163 Z M423,472 Q472,472 472,439 Q472,422 461,412 Q450,402 425,402 L393,402 L393,472 Z M429,326 Q455,326 467,314 Q479,303 479,285 Q479,244 430,244 L393,244 L393,326 Z" /></symbol><use x="0" y="0" xlink:href="#MORX-32/3.B" /></svg></td>
<td class="expected" ft:id="MORX-32/4" ft:render="XBY"
ft:font="TestMORXThirtytwo.ttf"><svg version="1.1" viewBox="0 -200 1526 1200"><symbol id="MORX-32/4.X" overflow="visible"><path d="M9,527 L116,527 L181,417 L243,527 L353,527 L240,345 L361,170 L250,170 L180,282 L111,170 L2,170 L121,353 Z" /></symbol><symbol id="MORX-32/4.B" overflow="visible"><path d="M151,-28 Q30,-28 30,94 L30,620 Q30,742 151,742 L678,742 Q800,742 800,620 L800,94 Q800,-28 678,-28 Z M439,163 Q508,163 547,193 Q587,224 587,277 Q587,319 567,339 Q548,359 518,366 L518,369 Q544,376 561,397 Q579,419 579,454 Q579,502 542,526 Q506,550 424,550 L289,550 L289,163 Z M423,472 Q472,472 472,439 Q472,422 461,412 Q450,402 425,402 L393,402 L393,472 Z M429,326 Q455,326 467,314 Q479,303 479,285 Q479,244 430,244 L393,244 L393,326 Z" /></symbol><symbol id="MORX-32/4.Y" overflow="visible"><path d="M0,527 L105,527 L166,395 L228,527 L332,527 L215,310 L215,170 L118,170 L118,307 Z" /></symbol><use x="0" y="0" xlink:href="#MORX-32/4.X" /><use x="364" y="0" xlink:href="#MORX-32/4.B" /><use x="1194" y="0" xlink:href="#MORX-32/4.Y" /></svg></td>
</tr>
<tr>
<th>Observed</th>
<td class="observed" ft:id="MORX-32/1"/>
<td class="observed" ft:id="MORX-32/2"/>
<td class="observed" ft:id="MORX-32/3"/>
<td class="observed" ft:id="MORX-32/4"/>
</tr>
<tr>
<th class="conformance-header">Conformance</th>
<td class="conformance" ft:id="MORX-32/1"/>
<td class="conformance" ft:id="MORX-32/2"/>
<td class="conformance" ft:id="MORX-32/3"/>
<td class="conformance" ft:id="MORX-32/4"/>
</tr>
</table>
</body>
</html>