summaryrefslogtreecommitdiff
path: root/tex/context/fonts/mkiv/type-imp-modernlatin.mkiv
blob: f62855a59edc0290460cc78b67c8ce6092254c31 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
%D \module
%D   [       file=type-imp-modernlatin,
%D        version=2018.03.25,
%D          title=\CONTEXT\ Typescript Macros,
%D       subtitle=Modern Latin Modern,
%D         author=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.

\starttypescriptcollection[modernlatin]

    \doifunknownfontfeature {lm-serif-regular} {\definefontfeature[lm-serif-regular][boldened-15]}
    \doifunknownfontfeature {lm-serif-bold}    {\definefontfeature[lm-serif-bold]   [boldened-30]}
    \doifunknownfontfeature {lm-sans-regular}  {\definefontfeature[lm-sans-regular] [boldened-10]}
    \doifunknownfontfeature {lm-sans-bold}     {\definefontfeature[lm-sans-bold]    [boldened-20]}
    \doifunknownfontfeature {lm-mono-regular}  {\definefontfeature[lm-mono-regular] [boldened-20]}
    \doifunknownfontfeature {lm-mono-bold}     {\definefontfeature[lm-mono-bold]    [boldened-30]}
    \doifunknownfontfeature {lm-math-regular}  {\definefontfeature[lm-math-regular] [boldened-15]}
    \doifunknownfontfeature {lm-math-bold}     {\definefontfeature[lm-math-bold]    [boldened-30]}

    \starttypescript [\s!serif] [modernlatin,modern-latin]
      % \loadfontgoodies[lm]
        \definefontsynonym [Serif]           [\s!file:lmroman10-regular]      [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifItalic]     [\s!file:lmroman10-italic]       [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifSlanted]    [\s!file:lmromanslant10-regular] [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifBold]       [\s!file:lmroman10-regular]      [\s!features={\s!default,lm-serif-bold}]
        \definefontsynonym [SerifBoldItalic] [\s!file:lmroman10-italic]       [\s!features={\s!default,lm-serif-bold}]
        \definefontsynonym [SerifBoldSlanted][\s!file:lmromanslant10-regular] [\s!features={\s!default,lm-serif-bold}]
    \stoptypescript

    \starttypescript [\s!serif] [lessmodernlatin,less-modern-latin]
      % \loadfontgoodies[lm]
        \definefontsynonym [Serif]           [\s!file:lmroman10-regular]      [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifItalic]     [\s!file:lmroman10-italic]       [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifSlanted]    [\s!file:lmromanslant10-regular] [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifBold]       [\s!file:lmroman10-bold]         [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifBoldItalic] [\s!file:lmroman10-bolditalic]   [\s!features={\s!default,lm-serif-regular}]
        \definefontsynonym [SerifBoldSlanted][\s!file:lmromanslant10-bold]    [\s!features={\s!default,lm-serif-regular}]
    \stoptypescript

    \starttypescript [\s!sans] [modernlatin,modern-latin]
      % \loadfontgoodies[lm]
        \definefontsynonym [Sans]           [\s!file:lmsans10-regular] [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansItalic]     [\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansSlanted]    [\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansBold]       [\s!file:lmsans10-regular] [\s!features={\s!default,lm-sans-bold}]
        \definefontsynonym [SansBoldItalic] [\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-bold}]
        \definefontsynonym [SansBoldSlanted][\s!file:lmsans10-oblique] [\s!features={\s!default,lm-sans-bold}]
    \stoptypescript

    \starttypescript [\s!sans] [lessmodernlatin,less-modern-latin]
      % \loadfontgoodies[lm]
        \definefontsynonym [Sans]           [\s!file:lmsans10-regular]     [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansItalic]     [\s!file:lmsans10-oblique]     [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansSlanted]    [\s!file:lmsans10-boldoblique] [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansBold]       [\s!file:lmsans10-bold]        [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansBoldItalic] [\s!file:lmsans10-boldoblique] [\s!features={\s!default,lm-sans-regular}]
        \definefontsynonym [SansBoldSlanted][\s!file:lmsans10-boldoblique] [\s!features={\s!default,lm-sans-regular}]
    \stoptypescript

    \starttypescript [\s!mono] [modernlatin,modern-latin]
      % \loadfontgoodies[lm]
        \definefontsynonym [Mono]           [\s!file:lmmono10-regular]      [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoItalic]     [\s!file:lmmono10-italic]       [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoSlanted]    [\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoBold]       [\s!file:lmmono10-regular]      [\s!features={\s!default,lm-mono-bold}]
        \definefontsynonym [MonoBoldItalic] [\s!file:lmmono10-italic]       [\s!features={\s!default,lm-mono-bold}]
        \definefontsynonym [MonoBoldSlanted][\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-bold}]
    \stoptypescript

    \starttypescript [\s!mono] [lessmodernlatin,less-modern-latin]
      % \loadfontgoodies[lm]
        \definefontsynonym [Mono]           [\s!file:lmmono10-regular]      [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoItalic]     [\s!file:lmmono10-italic]       [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoSlanted]    [\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoBold]       [\s!file:lmmono10-bold]         [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoBoldItalic] [\s!file:lmmono10-bolditalic]   [\s!features={\s!default,lm-mono-regular}]
        \definefontsynonym [MonoBoldSlanted][\s!file:lmmonoslant10-regular] [\s!features={\s!default,lm-mono-bold}]
    \stoptypescript

    \starttypescript [\s!math] [modernlatin,modern-latin,lessmodernlatin,less-modern-latin]
        \loadfontgoodies[lm]
        \definefontsynonym [MathRoman]     [\v!file:latinmodern-math-regular.otf] [\s!features={\s!math\mathsizesuffix,lm-math,lm-math-regular,mathextra},\s!goodies=lm]
        \definefontsynonym [MathRomanBold] [\v!file:latinmodern-math-regular.otf] [\s!features={\s!math\mathsizesuffix,lm-math,lm-math-bold,mathextra},\s!goodies=lm]
    \stoptypescript

    \starttypescript [modern-latin,modernlatin,less-modern-latin,lessmodernlatin]
        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default]
        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [\typescriptone] [\s!default]
        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [\typescriptone] [\s!default]
        \quittypescriptscanning
    \stoptypescript

\stoptypescriptcollection

\endinput