summaryrefslogtreecommitdiff
path: root/doc/context/presentations/context/2017/context-2017-features-pairtest.tex
blob: e84851e7d29de82f5a72823a330c4058e47614a4 (plain)
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
\setupbodyfont[dejavu]

\startluacode
    fonts.handlers.otf.addfeature {
        name = "pairtest",
        type = "pair",
        data = {
            A = { B = { { -30, 50, -50, 0 } } },
            B = { C = { { -30, 0, -50, 0 } } },
        }
    }
\stopluacode

\starttext

\definecolor[tgray][s=.5,t=.5,a=1] \showfontkerns \showglyphs

\definefontfeature[pairtest] [mode=node,pairtest=yes]

\definedfont[file:dejavu-serif.ttf*pairtest @ 48pt]

\startTEXpage[offset=10pt,foregroundcolor=tgray]
    ABCDEF
\stopTEXpage

\stoptext