summaryrefslogtreecommitdiff
path: root/doc/context/presentations/context/2017/context-2017-features-pairtest.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/context/presentations/context/2017/context-2017-features-pairtest.tex')
-rw-r--r--doc/context/presentations/context/2017/context-2017-features-pairtest.tex26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/context/presentations/context/2017/context-2017-features-pairtest.tex b/doc/context/presentations/context/2017/context-2017-features-pairtest.tex
new file mode 100644
index 000000000..e84851e7d
--- /dev/null
+++ b/doc/context/presentations/context/2017/context-2017-features-pairtest.tex
@@ -0,0 +1,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