1\setupbodyfont[dejavu]
2
3\startluacode
4 fonts.handlers.otf.addfeature {
5 name = "chaintest",
6 type = "chainposition",
7 lookups = {
8 {
9 type = "pair",
10 data = {
11 A = { B = { { -30, 0, -50, 0 } } },
12 B = { C = { { -30, 0, -50, 0 } } },
13 },
14 },
15 {
16 type = "pair",
17 data = {
18 D = { E = { { -30, 0, -50, 0 } } },
19 },
20 },
21 },
22 data = {
23 rules = {
24 {
25 current = { { "A"}, { "B"}, { "C" }, { "D" }, { "E" }, { "F" } },
26 lookups = { false, false, false, 2 },
27 },
28 {
29 current = { { "A" }, { "B" }, { "C" } },
30 lookups = { 1, 1 },
31 },
32 },
33 }
34 }
35\stopluacode
36
37\starttext
38
39\definecolor[tgray][s=.5,t=.5,a=1] \showfontkerns \showglyphs
40
41\definefontfeature[chaintest] [mode=node,chaintest=yes]
42
43\definedfont[file:dejavuserif.ttf*chaintest @ 48pt]
44
45\startTEXpage[offset=10pt,foregroundcolor=tgray]
46 ABCDEF
47\stopTEXpage
48
49\stoptext
50 |