1
2
3
4
5
6
7
8
9
10
11
12
13
14\starttypescriptcollection[xcharter]
15
16 \pushglobalsetups
17 \startsetups[xcharter]
18 \setupmathradical[\c!leftmargin=.05mq,mindepth=0.1mx]
19 \stopsetups
20 \popglobalsetups
21
22
23
24
25 \doifunknownfontfeature {xchartermathbold} {\definefontfeature[xchartermathbold][boldened]}
26
27 \starttypescript [\s!serif] [xcharter] [\s!name]
28 \definefontsynonym [\s!Serif] [\s!file:XCharterRoman] [\s!features=\s!default,\s!goodies=xchartertext]
29 \definefontsynonym [\s!SerifItalic] [\s!file:XCharterItalic] [\s!features=\s!default,\s!goodies=xchartertext]
30 \definefontsynonym [\s!SerifSlanted] [\s!file:XCharterSlanted] [\s!features=\s!default]
31 \definefontsynonym [\s!SerifBold] [\s!file:XCharterBold] [\s!features=\s!default,\s!goodies=xchartertext]
32 \definefontsynonym [\s!SerifBoldItalic] [\s!file:xcharterBoldItalic] [\s!features=\s!default,\s!goodies=xchartertext]
33 \definefontsynonym [\s!SerifBoldSlanted][\s!file:XCharterBoldSlanted][\s!features=\s!default]
34 \stoptypescript
35
36 \starttypescript [\s!sans] [cabin] [\s!name]
37 \setups[\s!font:\s!fallback:\s!sans]
38 \definefontsynonym [\s!Sans] [\s!file:CabinRegular] [\s!features=\s!default]
39 \definefontsynonym [\s!SansItalic] [\s!file:CabinItalic] [\s!features=\s!default]
40 \definefontsynonym [\s!SansBold] [\s!file:CabinSemiBold] [\s!features=\s!default]
41 \definefontsynonym [\s!SansBoldItalic][\s!file:CabinSemiBoldItalic][\s!features=\s!default]
42 \stoptypescript
43
44 \starttypescript [\s!mono] [inconsolata] [\s!name]
45 \setups[\s!font:\s!fallback:\s!mono]
46 \definefontsynonym [\s!Mono] [\s!file:Inconsolatazi4Regular][\s!features=\s!none]
47 \definefontsynonym [\s!MonoBold][\s!file:Inconsolatazi4Bold] [\s!features=\s!none]
48 \stoptypescript
49
50 \starttypescript [\s!math] [xcharter,xcharternt][\s!name]
51 \checkedmapfontsize[\typescripttwo][\s!script] [.70]
52 \checkedmapfontsize[\typescripttwo][\s!scriptscript][.55]
53 \stoptypescript
54
55 \starttypescript [\s!math] [xcharter][\s!name]
56 \definefontsynonym [\s!MathRoman] [\s!file:XCharterMath.otf][\s!features={\s!math\mathsizesuffix,xcharter:mathextra,mathextra},\s!goodies=xchartermath]
57 \definefontsynonym [\s!MathRomanBold][\s!file:XCharterMath.otf][\s!features={\s!math\mathsizesuffix,xchartermathbold,xcharter:mathextra,mathextra},\s!goodies=xchartermath]
58 \stoptypescript
59
60 \starttypescript [\s!math] [xcharternt] [\s!name]
61 \definefontsynonym [\s!MathRoman] [\s!file:XCharterMath.otf][\s!features={\s!math\mathsizesuffix,xcharter:mathextra,mathextra}]
62 \definefontsynonym [\s!MathRomanBold][\s!file:XCharterMath.otf][\s!features={\s!math\mathsizesuffix,xchartermathbold,xcharter:mathextra,mathextra}]
63 \stoptypescript
64
65 \starttypescript [xcharter,xcharternt]
66 \definetypeface [\typescriptone] [\s!rm] [\s!serif] [xcharter] [\s!default]
67 \definetypeface [\typescriptone] [\s!ss] [\s!sans] [cabin] [\s!default]
68 \definetypeface [\typescriptone] [\s!tt] [\s!mono] [inconsolata] [\s!default] [\s!rscale=1.1]
69 \definetypeface [\typescriptone] [\s!mm] [\s!math] [\typescriptone] [\s!default]
70 \quittypescriptscanning
71 \stoptypescript
72
73\stoptypescriptcollection
74 |