summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/s-fonts-coverage.mkiv
blob: c09d943bcca8bf7a534a761e94d1f6387d5c6e4c (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
%D \module
%D   [      file=s-fonts-coverage, % s-fnt-31
%D        version=2011.01.02,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Show Fonts Coverage,
%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.

% begin info
%
% title   : compare glyphs in fonts
%
% comment : show glyphs in several fonts alongside in order to to compare coverage
% status  : experimental, used for luatex testing
%
% end info

\startmodule[fonts-coverage]

\registerctxluafile{s-fonts-coverage}{}

\installmodulecommandluasingle \showfontcomparison {moduledata.fonts.coverage.showcomparison}

\stopmodule

\continueifinputfile{s-fonts-coverage.mkiv}

\usemodule[art-01]

\starttext

    \showfontcomparison
      [list={texgyrepagella-regular.otf,texgyretermes-regular.otf,texgyrebonum-regular.otf},
       pattern=ogonek]

    \page

  % $e=mc²$ ${}²$ $²$ $x²ᶞ$ $x⁽²⁺²⁼²⁺²⁾$ $x²⁺²⁼²⁺²$ $x₅²$ $x²₅²$

  % \startluacode
  %     moduledata.fonts.coverage.showcomparison {
  %         list = {
  %             "texgyrepagella-math.otf",
  %             "texgyretermes-math.otf",
  %             "texgyrebonum-math.otf",
  %         }
  %     }
  % \stopluacode

  % \startluacode
  %     moduledata.fonts.coverage.showcomparison {
  %         list = "pirat.ttf",
  %     }
  % \stopluacode

  % \startluacode
  %     moduledata.fonts.coverage.showcomparison {
  %         list = {
  %             "lucidabrightot.otf",
  %             "cambria.ttf",
  %             "iwona-regular.otf",
  %             "texgyrepagella-regular.otf",
  %             "texgyretermes-regular.otf",
  %             "texgyrebonum-regular.otf",
  %             "antpolt-regular.otf",
  %         },
  %         pattern = "OGONEK"
  %     }
  % \stopluacode

  % \loadfontgoodies[lucida-math]
  % \loadfontgoodies[lm-math]
  %
  % \startluacode
  %     moduledata.fonts.coverage.showcomparison {
  %         list = {
  %             "LucidaBrightRegular.ttf",
  %             "LucidaBrightOne@lucida-math",
  %             "cambria.ttc(Cambria Math)",
  %             "xits-math.otf",
  %             "LMMath10-Regular@lmroman10-math",
  %         },
  %     }
  % \stopluacode

  % \loadfontgoodies[px-math]
  % \loadfontgoodies[lm-math]
  %
  % \startluacode
  %     moduledata.fonts.coverage.showcomparison {
  %         list = {
  %             "cambria.ttc(Cambria Math)",
  %             "xits-math.otf",
  %          -- "stixmath-regular.otf",
  %             "latinmodern-math.otf",
  %          -- "lucidabrightmathot.otf",
  %          -- "lucidabrightmathot-demi.otf",
  %             "texgyrepagella-math.otf",
  %             "texgyretermes-math.otf",
  %             "texgyrebonum-math.otf",
  %          -- "LMMath10-Regular@lmroman10-math",
  %          -- "pxmath@px-math",
  %          -- "txmath@tx-math",
  %         },
  %     }
  % \stopluacode

  % \startluacode
  %     moduledata.fonts.coverage.showcomparison {
  %         list = {
  %             "dejavuserif.ttf",
  %             "dejavusans.ttf",
  %             "dejavusansmono.ttf",
  %             "lucidabrightot.otf",
  %             "cambria.ttf",
  %             "iwona-regular.otf",
  %             "texgyrepagella-regular.otf",
  %             "texgyretermes-regular.otf",
  %             "texgyrebonum-regular.otf",
  %             "antpolt-regular.otf",
  %         },
  %         pattern = "CELSIUS,FAHRENHEIT"
  %     }
  % \stopluacode

\stoptext