type-imp-erewhon.mkiv /size: 4134 b    last modification: 2024-01-16 10:22
1%D \module
2%D   [       file=type-imp-erewhon,
3%D        version=2022.30.09, % a bit older
4%D          title=\CONTEXT\ Typescript Macros,
5%D       subtitle=\TEX Gyre Fonts,
6%D         author=Mikael Sundqvist,
7%D           date=\currentdate,
8%D      copyright={\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%\loadtypescriptfile[texgyre]
15%\resetfontfallback [erewhon-euler-fix]
16%\definefontfallback[erewhon-euler-fix][texgyrepagella-math] [0x022EE,0x022F0,0x022F1,0x02661,0x02220][force=yes]
17
18\starttypescriptcollection[erewhon]
19
20    \pushglobalsetups
21        \startsetups[erewhon]
22            \setupmathradical[\c!leftmargin=.1mq,mindepth=0.1mx]%
23        \stopsetups
24    \popglobalsetups
25
26    %\definefontfeature[default-slanted-erewhon][default][slant=.2]
27    %\definefontfeature[none-slanted-erewhon]   [none]   [slant=.2]
28
29    \doifunknownfontfeature {erewhon-math-bold} {\definefontfeature[erewhon-math-bold][boldened]}
30
31    \starttypescript [\s!serif] [erewhon]
32        \definefontsynonym [\s!Serif]           [\s!file:Erewhon-Regular]       [\s!features=\s!default,\s!goodies=erewhon-text]
33        \definefontsynonym [\s!SerifItalic]     [\s!file:Erewhon-Italic]        [\s!features=\s!default,\s!goodies=erewhon-text]
34        \definefontsynonym [\s!SerifSlanted]    [\s!file:Erewhon-RegularSlanted][\s!features=\s!default]
35        \definefontsynonym [\s!SerifBold]       [\s!file:Erewhon-Bold]          [\s!features=\s!default,\s!goodies=erewhon-text]
36        \definefontsynonym [\s!SerifBoldItalic] [\s!file:Erewhon-BoldItalic]    [\s!features=\s!default,\s!goodies=erewhon-text]
37        \definefontsynonym [\s!SerifBoldSlanted][\s!file:Erewhon-BoldSlanted]   [\s!features=\s!default]
38    \stoptypescript
39
40    \starttypescript [\s!sans] [cabin-sans]
41        \setups[\s!font:\s!fallback:\s!sans]
42        \definefontsynonym [\s!Sans]          [\s!file:Cabin-Regular]       [\s!features=\s!default]
43        \definefontsynonym [\s!SansItalic]    [\s!file:Cabin-Italic]        [\s!features=\s!default]
44        \definefontsynonym [\s!SansBold]      [\s!file:Cabin-SemiBold]      [\s!features=\s!default]
45        \definefontsynonym [\s!SansBoldItalic][\s!file:Cabin-SemiBoldItalic][\s!features=\s!default]
46    \stoptypescript
47
48    \starttypescript [\s!mono] [inconsolata-mono]
49        \setups[\s!font:\s!fallback:\s!mono]
50        \definefontsynonym [\s!Mono]    [\s!file:Inconsolatazi4-Regular][\s!features=\s!none]
51        \definefontsynonym [\s!MonoBold][\s!file:Inconsolatazi4-Bold]   [\s!features=\s!none]
52    \stoptypescript
53
54    \starttypescript [\s!math] [erewhon,erewhon-nt]
55        \checkedmapfontsize[\typescripttwo][\s!script]      [.70]
56        \checkedmapfontsize[\typescripttwo][\s!scriptscript][.55]
57    \stoptypescript
58
59    \starttypescript [\s!math] [erewhon] [\s!name]
60        \definefontsynonym [\s!MathRoman]    [\s!file:Erewhon-Math.otf][\s!features={\s!math\mathsizesuffix,erewhon:mathextra,mathextra},\s!goodies=erewhon-math]
61        \definefontsynonym [\s!MathRomanBold][\s!file:Erewhon-Math.otf][\s!features={\s!math\mathsizesuffix,erewhon-math-bold,erewhon:mathextra,mathextra},\s!goodies=erewhon-math]
62    \stoptypescript
63
64    \starttypescript [\s!math] [erewhon-nt] [\s!name]
65        \definefontsynonym [\s!MathRoman]    [\s!file:Erewhon-Math.otf][\s!features={\s!math\mathsizesuffix,erewhon:mathextra,mathextra}]
66        \definefontsynonym [\s!MathRomanBold][\s!file:Erewhon-Math.otf][\s!features={\s!math\mathsizesuffix,erewhon-math-bold,erewhon:mathextra,mathextra}]
67    \stoptypescript
68
69    \starttypescript [erewhon,erewhon-nt]
70        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [erewhon]        [\s!default]
71        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [cabin]          [\s!default]
72        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [inconsolata]    [\s!default] [\s!rscale=1.1]
73        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [\typescriptone] [\s!default]
74        \quittypescriptscanning
75    \stoptypescript
76
77\stoptypescriptcollection
78