s-fonts-system.mkiv /size: 1603 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [      file=s-fonts0system, % s-fnt-11,
3%D        version=2006.02.01, % or so
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Listing Installed 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 This code usd to be in the kernel but since it's hardly used
15%D it's now a module.
16%D
17%D \starttyping
18%D \showinstalledfonts[pattern={officinasans.*}]
19%D \showinstalledfonts[pattern={officinaserif.*}]
20%D \showinstalledfonts[pattern={officina.*itc.*}]
21%D \stoptyping
22
23\startmodule[fonts-system]
24
25\registerctxluafile{s-fonts-system}{}
26
27\installmodulecommandluasingle \showinstalledfonts      {moduledata.fonts.system.showinstalled}
28\installmodulecommandluasingle \cacheinstalledfonts     {moduledata.fonts.system.cacheinstalled}
29\installmodulecommandluasingle \showinstalledglyphnames {moduledata.fonts.system.showinstalledglyphnames}
30%installmodulecommandluasingle \showprivateglyphnames   {moduledata.fonts.system.showprivateglyphnames}
31
32\stopmodule
33
34\continueifinputfile{s-fonts-system.mkiv}
35
36\usemodule[art-01] \setuplayout[overview] \setupbodyfont[6pt]
37
38\starttext
39
40%     \showinstalledfonts
41
42%     \enabletrackers[otf.keepnames]
43
44%     \cacheinstalledfonts[suffixes={otf,ttf,afm}]
45%     \cacheinstalledfonts[threshold=4000000,suffixes={otf,ttf,afm}]
46%     \cacheinstalledfonts[threshold=2000000,suffixes={otf,ttf,afm}]
47
48    \showinstalledglyphnames
49
50\stoptext
51