1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20\startmodule[fontsengines]
21
22\usemodule[fontssteps]
23\usemodule[fontsplugins]
24
25\enabletrackers[fonts.reorderlookups]
26
27\startsetups otftrackerextracontext
28 \definedfont[\getvariable{otftracker}{font}*\getvariable{otftracker}{features} at \getvariable{otftracker}{size}]\relax
29 \setotfcompositiondirection{\getvariable{otftracker}{direction}}\relax
30 \getvariable{otftracker}{sample}\relax
31\stopsetups
32
33\startsetups otftrackerextracontextreordered
34 \definedfont[\getvariable{otftracker}{font}*otftrackercontextreordered at \getvariable{otftracker}{size}]\relax
35 \setotfcompositiondirection{\getvariable{otftracker}{direction}}\relax
36 \getvariable{otftracker}{sample}\relax
37\stopsetups
38
39\startsetups otftrackerextraharfbuzz
40 \definedfont[\getvariable{otftracker}{font}*otftrackerharfbuzznative at \getvariable{otftracker}{size}]\relax
41 \setotfcompositiondirection{\getvariable{otftracker}{direction}}\relax
42 \getvariable{otftracker}{sample}\relax
43\stopsetups
44
45\startsetups otftrackerextrauniscribe
46 \definedfont[\getvariable{otftracker}{font}*otftrackerharfbuzzuniscribe at \getvariable{otftracker}{size}]\relax
47 \setotfcompositiondirection{\getvariable{otftracker}{direction}}\relax
48 \getvariable{otftracker}{sample}\relax
49\stopsetups
50
51\definecolor[otftrackeroverlay1][a=1,t=.5,b=1]
52\definecolor[otftrackeroverlay2][a=1,t=.5,g=1]
53\definecolor[otftrackeroverlay3][a=1,t=.5,r=1]
54
55
56
57
58
59
60
61\startsetups otftrackerextra
62 \start
63 \blank
64 \definefontfeature
65 [otftrackercontextreordered]
66 [\getvariable{otftracker}{features}]
67 [reorderlookups=arab]
68 \definefontfeature
69 [otftrackerharfbuzzuniscribe]
70 [\getvariable{otftracker}{features}]
71 [mode=plug,
72 features=harfbuzz,
73 shaper=uniscribe,
74
75
76
77
78
79
80 fina=nothing,
81 init=nothing,
82 medi=nothing,
83 isol=nothing,
84
85 script=arabic]
86 \definefontfeature
87 [otftrackerharfbuzznative]
88 [\getvariable{otftracker}{features}]
89 [mode=plug,
90 features=harfbuzz,
91 shaper=native,
92
93
94
95
96
97
98 fina=nothing,
99 init=nothing,
100 medi=nothing,
101 isol=nothing,
102 script=arabic]
103 \doifelsesomething {\getvariable{otftracker}{comment}} {
104 \def\ExtraComment{
105 \TB
106 \NC
107 comment
108 \NC
109 \vtop {
110 \hsize\dimexpr\hsize10em\relax
111 \veryraggedright
112 \getvariable{otftracker}{comment}
113 }
114 \NC \NR
115 }
116 } {
117 \def\ExtraComment{}
118 }
119 \starttabulate[lTBl]
120 \NC
121 context
122 \NC
123 \showglyphs \showfontkerns
124 \enabletrackers[otf.sample.silent]
125 \ruledhbox{\directsetup{otftrackerextracontext}}
126 \disabletrackers[otf.sample]
127 \NC \NR \TB \NC
128 reordered
129 \NC
130 \showglyphs \showfontkerns
131 \enabletrackers[otf.sample.silent]
132 \ruledhbox{\directsetup{otftrackerextracontextreordered}}
133 \disabletrackers[otf.sample]
134 \NC \NR \TB \NC
135 harfbuzz
136 \NC
137 \showglyphs \showfontkerns
138 \enabletrackers[fonts.plugins.hb.colors]
139 \ruledhbox{\directsetup{otftrackerextraharfbuzz}}
140 \disabletrackers[fonts.plugins.hb.colors]
141 \NC \NR \TB \NC
142 uniscribe
143 \NC
144 \showglyphs \showfontkerns
145 \enabletrackers[fonts.plugins.hb.colors]
146 \ruledhbox{\directsetup{otftrackerextrauniscribe}}
147 \disabletrackers[fonts.plugins.hb.colors]
148 \NC \NR \TB \NC
149 context
150 \NC
151 \showglyphs \showfontkerns
152 \ruledhbox{\directsetup{otftrackerextracontext}}
153 \NC \NR \TB \NC
154 harfbuzz
155 \NC
156 \showglyphs \showfontkerns
157 \ruledhbox{\directsetup{otftrackerextraharfbuzz}}
158 \NC \NR \TB \NC
159 uniscribe
160 \NC
161 \showglyphs \showfontkerns
162 \ruledhbox{\directsetup{otftrackerextrauniscribe}}
163 \NC \NR \TB \NC
164 context harfbuzz
165 \NC
166 \showglyphs \showfontkerns
167 \hbox to \zeropoint {
168 \ruledhbox{\color[otftrackeroverlay1]{\directsetup{otftrackerextraharfbuzz}}}
169 \hss
170 }
171 \ruledhbox{\color[otftrackeroverlay3]{\directsetup{otftrackerextracontext}}}
172 \NC \NR \TB \NC
173 uniscribe harfbuzz
174 \NC
175 \showglyphs \showfontkerns
176 \hbox to \zeropoint {
177 \ruledhbox{\color[otftrackeroverlay1]{\directsetup{otftrackerextraharfbuzz}}}
178 \hss
179 }
180 \ruledhbox{\color[otftrackeroverlay2]{\directsetup{otftrackerextrauniscribe}}}
181 \NC \NR \TB \NC
182 context uniscribe
183 \NC
184 \showglyphs \showfontkerns
185 \hbox to \zeropoint {
186 \ruledhbox{\color[otftrackeroverlay1]{\directsetup{otftrackerextrauniscribe}}}
187 \hss
188 }
189 \ruledhbox{\color[otftrackeroverlay2]{\directsetup{otftrackerextracontext}}}
190 \NC \NR
191 \ExtraComment
192 \stoptabulate
193 \stop
194\stopsetups
195
196\stopmodule
197 |