summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/s-fnt-28.mkiv
blob: 839c7d4ae44ec320abbeb632758118c1dc0e4292 (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
%D \module
%D   [      file=s-fnt-28,
%D        version=2010.09.22,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Tracing Names,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright=PRAGMA-ADE]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\startluacode
    function fonts.tracers.files(goodyfile)
        local goodies = fonts.goodies.get(goodyfile)
        if goodies then
            local files = goodies.files
            if files and files.list then
                for filename, specification in table.sortedpairs(files.list) do
                    context.start()
                    context.dontleavehmode()
                    context.definedfont{ filename .. "*default" }
                    context("%s-%s-%s-%s-%s",
                        specification.name    or files.name,
                        specification.weight  or "normal",
                        specification.style   or "normal",
                        specification.width   or "normal",
                        specification.variant or "normal")
                    context.par()
                    context.stop()
                end
            end
        end
    end
\stopluacode

\doifnotmode{demo}{\endinput}

\starttext

    \loadfontgoodies[antykwapoltawskiego]

    \ctxlua{fonts.tracers.files("antykwapoltawskiego")}

\stoptext