-
-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathMORX-41.html
More file actions
64 lines (59 loc) · 4.35 KB
/
Copy pathMORX-41.html
File metadata and controls
64 lines (59 loc) · 4.35 KB
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
<?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-41">MORX-41: Ligature Substitution Under-/Overflow</h3>
<div class="desc">
The <a href="../fonts/TestMORXFourtyone.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>Ligature Subtable</em> whose finite-state machine has one
single state. For glyphs <em>a</em> and <em>b</em>, the transition
marks the current glyph. For glyph <em>c</em>, the transition also
marks the current glyph, and then it executes an action to substitue
the marked glyphs by a ligature. When rendering the
strings <em>ac</em> and <em>bc</em>, the implementation finds two
glyphs on its glyph stack, which should get replaced by the
corresponding ligature. When rendering the string <em>cc</em>,
the implementation is asked to pop two glyphs from a stack
that contains just one. When rendering <em>abcc</em>,
the stack will contain three glyphs when handling the
first <em>c</em>.
</div>
<table>
<tr>
<th></th>
<th style="text-align:center">ac</th>
<th style="text-align:center">bc</th>
<th style="text-align:center">cc</th>
<th style="text-align:center">abcc</th>
</tr>
<tr>
<th>Expected</th>
<td class="expected" ft:id="MORX-41/1" ft:render="ac"
ft:font="TestMORXFourtyone.ttf"><svg version="1.1" viewBox="0 -200 1030 1200"><symbol id="MORX-41/1.a_c" overflow="visible"><path d="M288,545 Q386,545 433,502 Q480,459 480,365 L480,0 L416,0 L399,76 L395,76 Q360,32 321,11 Q282,-10 215,-10 Q142,-10 94,28 Q46,67 46,149 Q46,229 109,272 Q172,316 303,320 L394,323 L394,355 Q394,422 365,448 Q336,474 283,474 Q241,474 203,461 Q165,449 132,433 L105,499 Q140,518 188,531 Q236,545 288,545 Z M314,259 Q214,255 175,227 Q137,199 137,148 Q137,103 164,82 Q192,61 235,61 Q302,61 347,98 Q393,136 393,214 L393,262 Z M562,590 Q636,590 673,554 Q711,518 715,456 L661,456 Q656,497 631,508 Q606,519 560,519 Q521,519 492,507 Q464,495 459,456 L404,456 Q409,516 449,553 Q490,590 562,590 Z M850,-10 Q778,-10 723,19 Q668,48 636,109 Q605,170 605,265 Q605,364 637,426 Q670,488 727,517 Q784,546 856,546 Q896,546 934,537 Q973,529 997,517 L970,444 Q946,453 914,461 Q882,469 854,469 Q696,469 696,266 Q696,169 734,117 Q773,66 849,66 Q892,66 926,75 Q960,84 988,97 L988,19 Q961,5 928,-2 Q896,-10 850,-10 Z" /></symbol><use x="0" y="0" xlink:href="#MORX-41/1.a_c" /></svg></td>
<td class="expected" ft:id="MORX-41/2" ft:render="bc"
ft:font="TestMORXFourtyone.ttf"><svg version="1.1" viewBox="0 -200 1070 1200"><symbol id="MORX-41/2.b_c" overflow="visible"><path d="M173,575 Q173,541 171,511 Q170,482 168,465 L173,465 Q196,499 236,522 Q276,545 339,545 Q439,545 499,475 Q560,406 560,268 Q560,130 499,60 Q438,-10 339,-10 Q276,-10 236,13 Q196,36 173,68 L166,68 L148,0 L85,0 L85,760 L173,760 Z M324,472 Q238,472 205,423 Q173,374 173,271 L173,267 Q173,168 205,115 Q238,63 326,63 Q398,63 433,116 Q469,169 469,269 Q469,472 324,472 Z M890,-10 Q818,-10 763,19 Q708,48 676,109 Q645,170 645,265 Q645,364 677,426 Q710,488 767,517 Q824,546 896,546 Q936,546 974,537 Q1013,529 1037,517 L1010,444 Q986,453 954,461 Q922,469 894,469 Q736,469 736,266 Q736,169 774,117 Q813,66 889,66 Q932,66 966,75 Q1000,84 1028,97 L1028,19 Q1001,5 968,-2 Q936,-10 890,-10 Z M602,590 Q676,590 713,554 Q751,518 755,456 L701,456 Q696,497 671,508 Q646,519 600,519 Q561,519 532,507 Q504,495 499,456 L444,456 Q449,516 489,553 Q530,590 602,590 Z" /></symbol><use x="0" y="0" xlink:href="#MORX-41/2.b_c" /></svg></td>
<td class="expected-no-crash" ft:id="MORX-41/3" ft:render="cc"
ft:font="TestMORXFourtyone.ttf">No crash</td>
<td class="expected-no-crash" ft:id="MORX-41/4" ft:render="abcc"
ft:font="TestMORXFourtyone.ttf">No crash</td>
</tr>
<tr>
<th>Observed</th>
<td class="observed" ft:id="MORX-41/1"/>
<td class="observed" ft:id="MORX-41/2"/>
<td class="observed" ft:id="MORX-41/3"/>
<td class="observed" ft:id="MORX-41/4"/>
</tr>
<tr>
<th class="conformance-header">Conformance</th>
<td class="conformance" ft:id="MORX-41/1"/>
<td class="conformance" ft:id="MORX-41/2"/>
<td class="conformance" ft:id="MORX-41/3"/>
<td class="conformance" ft:id="MORX-41/4"/>
</tr>
</table>
</body>
</html>