type-imp-mathdigits.mkiv /size: 1946 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=type-imp-hvmath,
3%D        version=2007.07.30,
4%D          title=\CONTEXT\ Typescript Macros,
5%D       subtitle=Xits,
6%D         author=Khaled Hosny \& Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14% \starttypescript [math] [xits] [name]
15%     \definefontsynonym[MathRoman][file:xits-math.otf][features=math\mathsizesuffix,goodies=xits-math,fallbacks=mathdigits]
16% \stoptypescript
17%
18% \usetypescript [mathdigits][dejavu][arabicindic]
19
20% \definefontsynonym [MathRomanDigitsXitsDejavu] [file:xits-math.otf] [features=math\mathsizesuffix,goodies=xits-math,fallbacks=mathdigits]
21%
22% \starttypescript [math] [xits] [name]
23%     \definefontsynonym [MathRoman] [MathRomanDigitsXitsDejavu]
24% \stoptypescript
25%
26% \usetypescript [mathdigits][dejavu][arabicindic]
27
28\starttypescriptcollection[mathdigits]
29
30    \starttypescript [mathdigits] [dejavu] [arabicindic,extendedarabicindic]
31        \resetfontfallback  [mathdigits]
32        \definefontfallback [mathdigits] [dejavusansmono]     [digits\typescriptthree] [check=yes,force=yes,offset=digitsnormal]
33        \definefontfallback [mathdigits] [dejavusansmonobold] [digits\typescriptthree] [check=yes,force=yes,offset=digitsbold]
34    \stoptypescript
35
36    \starttypescript [mathdigits] [xits-dejavu] [arabicindic,extendedarabicindic]
37        \usetypescript [mathdigits] [dejavu] [\typescriptthree]
38        \definefontsynonym[MathRoman][file:xits-math.otf][features=math\mathsizesuffix,goodies=xits-math,fallbacks=mathdigits]
39    \stoptypescript
40
41\stoptypescriptcollection
42
43\continueifinputfile{type-imp-mathdigits.mkiv}
44
45% \usetypescriptfile[mathdigits]
46
47\usetypescript [mathdigits] [xits-dejavu] [arabicindic]
48
49\setupbodyfont[dejavu]
50
51\starttext
52    $3+2=5 \quad \bf 3+2=5$
53\stoptext
54