type-imp-opendyslexic.mkiv /size: 3861 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=type-imp-opendyslexic,
3%D        version=2013.05.02,
4%D          title=\CONTEXT\ Typescript Macros,
5%D       subtitle=Opendyslexic Fonts,
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%D It's kind of funny that the term \quote {dyslexic} itself is hard to read and I
15%D (not being dyslexic) need to double check it.
16%D
17%D As often a sans is adviced: I personally think that Optima Nova is a quite good
18%D choice but it doesn't come for free.
19
20% \enabledirectives[fonts.features.combine]
21%
22% \usetypescriptfile[opendyslexic]
23%
24% \starttypescript[opendyslexic-new]
25%     \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default] [features=opendyslexic-new]
26%     \definetypeface [\typescriptone] [ss] [serif] [\typescriptone] [default] [features=opendyslexic-new]
27%     \definetypeface [\typescriptone] [tt] [mono]  [\typescriptone] [default]
28%     \definetypeface [\typescriptone] [mm] [math]  [xits]           [default]
29% \stoptypescript
30%
31% \setupbodyfont
32%   [opendyslexic-new,10pt]
33%
34% \starttext
35%     \input tufte
36% \stoptext
37
38% \setupinterlinespace[line=1.535\bodyfontsize] % older fonts have a weird exheight
39
40\starttypescriptcollection[opendyslexic]
41
42    \definefontfeature
43      [opendyslexic-new]
44      [spacing={0.4+0.2-0.1}]
45
46    \starttypescript [\s!serif] [opendyslexic] [\s!name]
47        \setups[\s!font:\s!fallback:\s!serif]
48        \definefontsynonym [\s!Serif]           [\s!file:opendyslexic-regular.otf]    [\s!features=\s!default]
49        \definefontsynonym [\s!SerifBold]       [\s!file:opendyslexic-bold.otf]       [\s!features=\s!default]
50        \definefontsynonym [\s!SerifItalic]     [\s!file:opendyslexic-italic.otf]     [\s!features=\s!default]
51        \definefontsynonym [\s!SerifBoldItalic] [\s!file:opendyslexic-bolditalic.otf] [\s!features=\s!default]
52    \stoptypescript
53
54    \starttypescript [\s!serif] [opendyslexic-new] [\s!name]
55        \setups[\s!font:\s!fallback:\s!serif]
56        \definefontsynonym [\s!Serif]     [\s!file:opendyslexic3-regular.ttf] [\s!features={opendyslexic-new,\s!default}]
57        \definefontsynonym [\s!SerifBold] [\s!file:opendyslexic3-bold.ttf]    [\s!features={opendyslexic-new,\s!default}]
58    \stoptypescript
59
60    \starttypescript [\s!sans] [opendyslexic,opendyslexic-new] [\s!name]
61        \setups[\s!font:\s!fallback:\s!sans]
62        \definefontsynonym [\s!Sans]           [\s!file:opendyslexicalta-regular.otf]    [\s!features=\s!default]
63        \definefontsynonym [\s!SansBold]       [\s!file:opendyslexicalta-bold.otf]       [\s!features=\s!default]
64        \definefontsynonym [\s!SansItalic]     [\s!file:opendyslexicalta-italic.otf]     [\s!features=\s!default]
65        \definefontsynonym [\s!SansBoldItalic] [\s!file:opendyslexicalta-bolditalic.otf] [\s!features=\s!default]
66    \stoptypescript
67
68    \starttypescript [\s!mono] [opendyslexic,opendyslexic-new] [\s!name]
69        \setups[\s!font:\s!fallback:\s!mono]
70        \definefontsynonym [\s!Mono] [\s!file:opendyslexicmono-regular.otf] [\s!features=\s!none]
71    \stoptypescript
72
73    % We now have more gyre fonts so maybe we should test with a less times look
74    % alike instead.
75
76    \starttypescript[opendyslexic,opendyslexic-new]
77        \definetypeface [\typescriptone] [\s!rm] [\s!serif] [\typescriptone] [\s!default]
78        \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [\typescriptone] [\s!default]
79        \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [\typescriptone] [\s!default]% [rscale=1.065]
80        \definetypeface [\typescriptone] [\s!mm] [\s!math]  [xits]           [\s!default]% [rscale=1.020]
81    \stoptypescript
82
83\stoptypescriptcollection
84