summaryrefslogtreecommitdiff
path: root/tex/context/base/s-fnt-21.mkiv
blob: 10d5a462394f4a871a5376e9dcb573419aefd293 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%D \module
%D   [      file=s-fnt-20,
%D        version=2009.01.10,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Tracing Feature Application (2),
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D This module is related to:

\usemodule[fnt-20]

\setvariables
  [otftracker]
  [set=\setups{araball}]

\startsetups araball
    \begingroup
    \setupcolors[state=start]%
    \enabletrackers[otf.analyzing]% beware, kind of global
    \ruledhbox \bgroup
      \definedfont[\getvariable{otftracker}{font}*\getvariable{otftracker}{features} at \getvariable{otftracker}{size}]%
      \ifnum\getvariable{otftracker}{direction}<0 \textdir TRT\else\ifnum\getvariable{otftracker}{direction}>0 \textdir TLT\fi\fi\relax
      \getvariable{otftracker}{sample}%
    \egroup
    \disabletrackers[otf.analyzing]%
    \endgroup
\stopsetups

\unexpanded\def\ShowOtfTrackerSample#1%
  {\doiffile{#1}
     {\blank
      \startlinecorrection
      \vbox \bgroup
        \forgetall
        \setbox\scratchbox\hbox{\component #1 \relax}
        \hbox{\copy\scratchbox\quad\lower\dp\scratchbox\hbox{\ruledhbox{\externalfigure[#1-volt.pdf][height=\htdp\scratchbox]}}}
        \hbox{\strut\tttf#1}%
      \egroup
      \stoplinecorrection
      \blank}}

\endinput

% \usemodule[fnt-21]
%
% \starttext
%
% \setvariables
%   [otftracker]
%   [direction=-1,
%    sample=لا,
%    title=Test,
%    font=file:arabtype,
%  % font=file:husayni,
%  % font=file:scheherazaderegot,
%    features=arabic]
%
% \stoptext