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\definefontfeature[xitsmath][copymathscripts=yes]
26
27\loadtypescriptfile[texgyre]
28
29\starttypescriptcollection[xits]
30
31 \starttypescript [\s!math] [xits,xitsbidi] [\s!name]
32 \loadfontgoodies[xitsmath]
33 \definefontsynonym[\s!MathRoman ][\s!file:xitsmathregular.otf] [\s!features={\s!math\mathsizesuffix ,mathextra,xitsmath},\s!goodies=xitsmath]
34 \definefontsynonym[\s!MathRoman L2R][\s!file:xitsmathregular.otf] [\s!features={\s!math\mathsizesuffixl2r,mathextra,xitsmath},\s!goodies=xitsmath]
35 \definefontsynonym[\s!MathRoman R2L][\s!file:xitsmathregular.otf] [\s!features={\s!math\mathsizesuffixr2l,mathextra,xitsmath},\s!goodies=xitsmath]
36 \definefontsynonym[\s!MathRomanBold ][\s!file:xitsmathbold.otf] [\s!features={\s!math\mathsizesuffix ,mathextra,xitsmath},\s!goodies=xitsmath]
37 \definefontsynonym[\s!MathRomanBold L2R][\s!file:xitsmathbold.otf] [\s!features={\s!math\mathsizesuffixl2r,mathextra,xitsmath},\s!goodies=xitsmath]
38 \definefontsynonym[\s!MathRomanBold R2L][\s!file:xitsmathbold.otf] [\s!features={\s!math\mathsizesuffixr2l,mathextra,xitsmath},\s!goodies=xitsmath]
39 \stoptypescript
40
41 \starttypescript [\s!serif] [xits] [\s!name]
42 \setups[\s!font:\s!fallback:\s!serif]
43 \definefontsynonym[\s!Serif] [\s!file:xitsregular.otf] [\s!features=\s!default]
44 \definefontsynonym[\s!SerifBold] [\s!file:xitsbold.otf] [\s!features=\s!default]
45 \definefontsynonym[\s!SerifItalic] [\s!file:xitsitalic.otf] [\s!features=\s!default]
46 \definefontsynonym[\s!SerifBoldItalic][\s!file:xitsbolditalic.otf] [\s!features=\s!default]
47 \stoptypescript
48
49 \starttypescript[xits]
50 \definetypeface [xits] [\s!rm] [\s!serif] [xits] [\s!default]
51 \definetypeface [xits] [\s!ss] [\s!sans] [heros] [\s!default] [\s!rscale=0.9]
52 \definetypeface [xits] [\s!tt] [\s!mono] [modern] [\s!default] [\s!rscale=1.05]
53 \definetypeface [xits] [\s!mm] [\s!math] [xits] [\s!default]
54 \stoptypescript
55
56
57
58 \starttypescript[xitsbidi]
59 \definetypeface [xitsbidi] [\s!rm] [\s!serif] [xits] [\s!default]
60 \definetypeface [xitsbidi] [\s!ss] [\s!sans] [heros] [\s!default] [\s!rscale=0.9]
61 \definetypeface [xitsbidi] [\s!tt] [\s!mono] [modern] [\s!default] [\s!rscale=1.05]
62
63 \definetypeface [xitsbidi] [\s!mm] [\s!math] [xitsbidi] [\s!default] [\s!direction=\s!both]
64 \stoptypescript
65
66\stoptypescriptcollection
67
68 |