%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 \& \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.

\startluacode
    function fonts.tracers.files(goodyfile)
        local goodies = fonts.goodies.load(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

\continueifinputfile{s-fnt-28.mkiv}

\starttext

    \loadfontgoodies[antykwapoltawskiego]

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

\stoptext
