type-imp-modernlatin.mkiv /size: 7211 b    last modification: 2023-12-21 09:44
1%D \module
2%D   [       file=type-imp-modernlatin,
3%D        version=2018.03.25,
4%D          title=\CONTEXT\ Typescript Macros,
5%D       subtitle=Modern Latin Modern,
6%D         author=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\starttypescriptcollection[modernlatin]
15
16    \doifunknownfontfeature {lm-serif-regular} {\definefontfeature[lm-serif-regular][boldened-15]}
17    \doifunknownfontfeature {lm-serif-bold}    {\definefontfeature[lm-serif-bold]   [boldened-30]}
18    \doifunknownfontfeature {lm-sans-regular}  {\definefontfeature[lm-sans-regular] [boldened-10]}
19    \doifunknownfontfeature {lm-sans-bold}     {\definefontfeature[lm-sans-bold]    [boldened-20]}
20    \doifunknownfontfeature {lm-mono-regular}  {\definefontfeature[lm-mono-regular] [boldened-20]}
21    \doifunknownfontfeature {lm-mono-bold}     {\definefontfeature[lm-mono-bold]    [boldened-30]}
22    \doifunknownfontfeature {lm-math-regular}  {\definefontfeature[lm-math-regular] [boldened-15]}
23    \doifunknownfontfeature {lm-math-bold}     {\definefontfeature[lm-math-bold]    [boldened-30]}
24
25    \starttypescript [\s!serif] [modernlatin,modern-latin]
26      % \loadfontgoodies[lm]
27        \definefontsynonym [Serif]           [\s!file:lmroman10-regular]      [\s!features={\s!default,lm-serif-regular}]
28        \definefontsynonym [SerifItalic]     [\s!file:lmroman10-italic]       [\s!features={\s!default,lm-serif-regular}]
29        \definefontsynonym [SerifSlanted]    [\s!file:lmromanslant10-regular] [\s!features={\s!default,lm-serif-regular}]
30        \definefontsynonym [SerifBold]       [\s!file:lmroman10-regular]      [\s!features={\s!default,lm-serif-bold}]
31        \definefontsynonym [SerifBoldItalic] [\s!file:lmroman10-italic]       [\s!features={\s!default,lm-serif-bold}]
32        \definefontsynonym [SerifBoldSlanted][\s!file:lmromanslant10-regular] [\s!features={\s!default,lm-serif-bold}]
33    \stoptypescript
34
35    \starttypescript [\s!serif] [lessmodernlatin,less-modern-latin]
36      % \loadfontgoodies[lm]
37        \definefontsynonym [Serif]           [\s!file:lmroman10-regular]      [\s!features={\s!default,lm-serif-regular}]
38        \definefontsynonym [SerifItalic]     [\s!file:lmroman10-italic]       [\s!features={\s!default,lm-serif-regular}]
39        \definefontsynonym [SerifSlanted]    [\s!file:lmromanslant10-regular] [\s!features={\s!default,lm-serif-regular}]
40        \definefontsynonym [SerifBold]       [\s!file:lmroman10-bold]         [\s!features={\s!default,lm-serif-regular}]
41        \definefontsynonym [SerifBoldItalic] [\s!file:lmroman10-bolditalic]   [\s!features={\s!default,lm-serif-regular}]
42        \definefontsynonym [SerifBoldSlanted][\s!file:lmromanslant10-bold]    [\s!features={\s!default,lm-serif-regular}]
43    \stoptypescript
44
45    \starttypescript [\s!sans] [modernlatin,modern-latin]
46      % \loadfontgoodies[lm]
47        \definefontsynonym [Sans]           [\s!file:lmsans10-regular] [\s!features={\s!default,lm-sans-regular}]
48        \definefontsynonym [SansItalic]     [\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-regular}]
49        \definefontsynonym [SansSlanted]    [\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-regular}]
50        \definefontsynonym [SansBold]       [\s!file:lmsans10-regular] [\s!features={\s!default,lm-sans-bold}]
51        \definefontsynonym [SansBoldItalic] [\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-bold}]
52        \definefontsynonym [SansBoldSlanted][\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-bold}]
53    \stoptypescript
54
55    \starttypescript [\s!sans] [lessmodernlatin,less-modern-latin]
56      % \loadfontgoodies[lm]
57        \definefontsynonym [Sans]           [\s!file:lmsans10-regular]     [\s!features={\s!default,lm-sans-regular}]
58        \definefontsynonym [SansItalic]     [\s!file:lmsans10-oblique]     [\s!features={\s!default,lm-sans-regular}]
59        \definefontsynonym [SansSlanted]    [\s!file:lmsans10-boldoblique] [\s!features={\s!default,lm-sans-regular}]
60        \definefontsynonym [SansBold]       [\s!file:lmsans10-bold]        [\s!features={\s!default,lm-sans-regular}]
61        \definefontsynonym [SansBoldItalic] [\s!file:lmsans10-boldoblique] [\s!features={\s!default,lm-sans-regular}]
62        \definefontsynonym [SansBoldSlanted][\s!file:lmsans10-boldoblique] [\s!features={\s!default,lm-sans-regular}]
63    \stoptypescript
64
65    \starttypescript [\s!mono] [modernlatin,modern-latin]
66      % \loadfontgoodies[lm]
67        \definefontsynonym [Mono]           [\s!file:lmmono10-regular]      [\s!features={\s!default,lm-mono-regular}]
68        \definefontsynonym [MonoItalic]     [\s!file:lmmono10-italic]       [\s!features={\s!default,lm-mono-regular}]
69        \definefontsynonym [MonoSlanted]    [\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-regular}]
70        \definefontsynonym [MonoBold]       [\s!file:lmmono10-regular]      [\s!features={\s!default,lm-mono-bold}]
71        \definefontsynonym [MonoBoldItalic] [\s!file:lmmono10-italic]       [\s!features={\s!default,lm-mono-bold}]
72        \definefontsynonym [MonoBoldSlanted][\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-bold}]
73    \stoptypescript
74
75    \starttypescript [\s!mono] [lessmodernlatin,less-modern-latin]
76      % \loadfontgoodies[lm]
77        \definefontsynonym [Mono]           [\s!file:lmmono10-regular]      [\s!features={\s!default,lm-mono-regular}]
78        \definefontsynonym [MonoItalic]     [\s!file:lmmono10-italic]       [\s!features={\s!default,lm-mono-regular}]
79        \definefontsynonym [MonoSlanted]    [\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-regular}]
80        \definefontsynonym [MonoBold]       [\s!file:lmmono10-bold]         [\s!features={\s!default,lm-mono-regular}]
81        \definefontsynonym [MonoBoldItalic] [\s!file:lmmono10-bolditalic]   [\s!features={\s!default,lm-mono-regular}]
82        \definefontsynonym [MonoBoldSlanted][\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-bold}]
83    \stoptypescript
84
85    \starttypescript [\s!math] [modernlatin,modern-latin,lessmodernlatin,less-modern-latin]
86        \loadfontgoodies[modern-math]
87        \definefontsynonym [MathRoman]     [\v!file:latinmodern-math.otf] [\s!features={\s!math\mathsizesuffix,lm-math,lm-math-regular,mathextra},\s!goodies=modern-math]
88        \definefontsynonym [MathRomanBold] [\v!file:latinmodern-math.otf] [\s!features={\s!math\mathsizesuffix,lm-math,lm-math-bold,mathextra},\s!goodies=modern-math]
89    \stoptypescript
90
91    \starttypescript [modern-latin,modernlatin,less-modern-latin,lessmodernlatin]
92        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default]
93        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
94        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [\typescriptone] [\s!default]
95        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [\typescriptone] [\s!default]
96        \quittypescriptscanning
97    \stoptypescript
98
99\stoptypescriptcollection
100
101\endinput
102