summaryrefslogtreecommitdiff
path: root/doc/context/presentations/context/2017/context-2017-features-chaintest.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/context/presentations/context/2017/context-2017-features-chaintest.tex')
-rw-r--r--doc/context/presentations/context/2017/context-2017-features-chaintest.tex49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/context/presentations/context/2017/context-2017-features-chaintest.tex b/doc/context/presentations/context/2017/context-2017-features-chaintest.tex
new file mode 100644
index 000000000..58d1040f2
--- /dev/null
+++ b/doc/context/presentations/context/2017/context-2017-features-chaintest.tex
@@ -0,0 +1,49 @@
+\setupbodyfont[dejavu]
+
+\startluacode
+ fonts.handlers.otf.addfeature {
+ name = "chaintest",
+ type = "chainposition",
+ lookups = {
+ {
+ type = "pair",
+ data = {
+ A = { B = { { -30, 0, -50, 0 } } },
+ B = { C = { { -30, 0, -50, 0 } } },
+ },
+ },
+ {
+ type = "pair",
+ data = {
+ D = { E = { { -30, 0, -50, 0 } } },
+ },
+ },
+ },
+ data = {
+ rules = {
+ {
+ current = { { "A"}, { "B"}, { "C" }, { "D" }, { "E" }, { "F" } },
+ lookups = { false, false, false, 2 },
+ },
+ {
+ current = { { "A" }, { "B" }, { "C" } },
+ lookups = { 1, 1 },
+ },
+ },
+ }
+ }
+\stopluacode
+
+\starttext
+
+\definecolor[tgray][s=.5,t=.5,a=1] \showfontkerns \showglyphs
+
+\definefontfeature[chaintest] [mode=node,chaintest=yes]
+
+\definedfont[file:dejavu-serif.ttf*chaintest @ 48pt]
+
+\startTEXpage[offset=10pt,foregroundcolor=tgray]
+ ABCDEF
+\stopTEXpage
+
+\stoptext