summaryrefslogtreecommitdiff
path: root/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv
blob: 7a7e6b764bb86f866ecac49d8a81877e00ff0909 (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
%D \module
%D   [       file=type-imp-hvmath,
%D        version=2007.07.30,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Xits,
%D         author=Khaled Hosny \& 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.

% \starttypescript [math] [xits] [name]
%     \definefontsynonym[MathRoman][file:xits-math.otf][features=math\mathsizesuffix,goodies=xits-math,fallbacks=mathdigits]
% \stoptypescript
%
% \usetypescript [mathdigits][dejavu][arabicindic]

% \definefontsynonym [MathRomanDigitsXitsDejavu] [file:xits-math.otf] [features=math\mathsizesuffix,goodies=xits-math,fallbacks=mathdigits]
%
% \starttypescript [math] [xits] [name]
%     \definefontsynonym [MathRoman] [MathRomanDigitsXitsDejavu]
% \stoptypescript
%
% \usetypescript [mathdigits][dejavu][arabicindic]

\starttypescriptcollection[mathdigits]

    \starttypescript [mathdigits] [dejavu] [arabicindic,extendedarabicindic]
        \resetfontfallback  [mathdigits]
        \definefontfallback [mathdigits] [dejavusansmono]     [digits\typescriptthree] [check=yes,force=yes,offset=digitsnormal]
        \definefontfallback [mathdigits] [dejavusansmonobold] [digits\typescriptthree] [check=yes,force=yes,offset=digitsbold]
    \stoptypescript

    \starttypescript [mathdigits] [xits-dejavu] [arabicindic,extendedarabicindic]
        \usetypescript [mathdigits] [dejavu] [\typescriptthree]
        \definefontsynonym[MathRoman][file:xits-math.otf][features=math\mathsizesuffix,goodies=xits-math,fallbacks=mathdigits]
    \stoptypescript

\stoptypescriptcollection

\continueifinputfile{type-imp-mathdigits.mkiv}

% \usetypescriptfile[mathdigits]

\usetypescript [mathdigits] [xits-dejavu] [arabicindic]

\setupbodyfont[dejavu]

\starttext
    $3+2=5 \quad \bf 3+2=5$
\stoptext