context-2017-features-pairtest.tex /size: 535 b    last modification: 2020-07-01 14:35
1\setupbodyfont[dejavu]
2
3\startluacode
4    fonts.handlers.otf.addfeature {
5        name = "pairtest",
6        type = "pair",
7        data = {
8            A = { B = { { -30, 50, -50, 0 } } },
9            B = { C = { { -30, 0, -50, 0 } } },
10        }
11    }
12\stopluacode
13
14\starttext
15
16\definecolor[tgray][s=.5,t=.5,a=1] \showfontkerns \showglyphs
17
18\definefontfeature[pairtest] [mode=node,pairtest=yes]
19
20\definedfont[file:dejavu-serif.ttf*pairtest @ 48pt]
21
22\startTEXpage[offset=10pt,foregroundcolor=tgray]
23    ABCDEF
24\stopTEXpage
25
26\stoptext
27