s-fonts-coverage.mkiv /size: 3930 b    last modification: 2023-12-21 09:45
1%D \module
2%D   [      file=s-fonts-coverage, % s-fnt-31
3%D        version=2011.01.02,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Show Fonts Coverage,
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% begin info
15%
16% title   : compare glyphs in fonts
17%
18% comment : show glyphs in several fonts alongside in order to to compare coverage
19% status  : experimental, used for luatex testing
20%
21% end info
22
23\startmodule[fonts-coverage]
24
25\registerctxluafile{s-fonts-coverage}{}
26
27\installmodulecommandluasingle \showfontcomparison {moduledata.fonts.coverage.showcomparison}
28\installmodulecommandluasingle \showfontdifference {moduledata.fonts.coverage.showdifference}
29
30\stopmodule
31
32\continueifinputfile{s-fonts-coverage.mkiv}
33
34% \usemodule[fonts-coverage]
35
36\usemodule[art-01]
37
38\starttext
39
40%     \showfontcomparison
41%       [list={texgyrepagella-regular.otf,texgyretermes-regular.otf,texgyrebonum-regular.otf},
42%        pattern=ogonek]
43
44    \showfontcomparison
45      [list={texgyrepagella-regular.otf,texgyretermes-regular.otf,nimbusroman-regular.afm}]
46
47    \page
48
49  % $e=mc²$ ${}²$ $²$ $x²ᶞ$ $x⁽²⁺²⁼²⁺²⁾$ $x²⁺²⁼²⁺²$ $x₅²$ $x²₅²$
50
51  % \startluacode
52  %     moduledata.fonts.coverage.showcomparison {
53  %         list = {
54  %             "texgyrepagella-math.otf",
55  %             "texgyretermes-math.otf",
56  %             "texgyrebonum-math.otf",
57  %         }
58  %     }
59  % \stopluacode
60
61  % \startluacode
62  %     moduledata.fonts.coverage.showcomparison {
63  %         list = "pirat.ttf",
64  %     }
65  % \stopluacode
66
67  % \startluacode
68  %     moduledata.fonts.coverage.showcomparison {
69  %         list = {
70  %             "lucidabrightot.otf",
71  %             "cambria.ttf",
72  %             "iwona-regular.otf",
73  %             "texgyrepagella-regular.otf",
74  %             "texgyretermes-regular.otf",
75  %             "texgyrebonum-regular.otf",
76  %             "antpolt-regular.otf",
77  %         },
78  %         pattern = "OGONEK"
79  %     }
80  % \stopluacode
81
82  % \loadfontgoodies[lucida-math]
83  % \loadfontgoodies[lm-math]
84  %
85  % \startluacode
86  %     moduledata.fonts.coverage.showcomparison {
87  %         list = {
88  %             "LucidaBrightRegular.ttf",
89  %             "LucidaBrightOne@lucida-math",
90  %             "cambria.ttc(Cambria Math)",
91  %             "xits-math.otf",
92  %             "LMMath10-Regular@lmroman10-math",
93  %         },
94  %     }
95  % \stopluacode
96
97  % \loadfontgoodies[px-math]
98  % \loadfontgoodies[lm-math]
99  %
100  % \startluacode
101  %     moduledata.fonts.coverage.showcomparison {
102  %         list = {
103  %             "cambria.ttc(Cambria Math)",
104  %             "xits-math.otf",
105  %          -- "stixtwomath-regular.otf", -- watch out: the name changes
106  %             "latinmodern-math.otf",
107  %          -- "lucidabrightmathot.otf",
108  %          -- "lucidabrightmathot-demi.otf",
109  %             "texgyrepagella-math.otf",
110  %             "texgyretermes-math.otf",
111  %             "texgyrebonum-math.otf",
112  %          -- "LMMath10-Regular@lmroman10-math",
113  %          -- "pxmath@px-math",
114  %          -- "txmath@tx-math",
115  %         },
116  %     }
117  % \stopluacode
118
119  % \startluacode
120  %     moduledata.fonts.coverage.showcomparison {
121  %         list = {
122  %             "dejavuserif.ttf",
123  %             "dejavusans.ttf",
124  %             "dejavusansmono.ttf",
125  %             "lucidabrightot.otf",
126  %             "cambria.ttf",
127  %             "iwona-regular.otf",
128  %             "texgyrepagella-regular.otf",
129  %             "texgyretermes-regular.otf",
130  %             "texgyrebonum-regular.otf",
131  %             "antpolt-regular.otf",
132  %         },
133  %         pattern = "CELSIUS,FAHRENHEIT"
134  %     }
135  % \stopluacode
136
137\stoptext
138