%D \module
%D   [      file=s-text-tests.mkxl,
%D        version=2023.04.11,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Some Text Tests,
%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.

\continueifinputfile{s-text-tests.mkxl}

%D Here we collect some tests that later will become proper macros.

\starttext
    \setuppapersize[S4]
    \showmakeup[line]
    \def\Test#1{\start\setupheadertexts[\string#1]#1\samplefile{ward}\page\stop}

    \Test\notragged
    \Test\raggedleft
    \Test\raggedcenter
    \Test\raggedright
    \Test\veryraggedleft
    \Test\veryraggedcenter
    \Test\veryraggedright
    \Test\raggedwidecenter
    \Test\centeredlastline
    \Test\flushedrightlastline
    \Test\ttraggedright
    \Test\forgetragged
    \Test\raggedslanted
\stoptext

% fonts

\usebodyfont[bonum]
\usebodyfont[cambria]
\usebodyfont[concrete]
\usebodyfont[dejavu]
\usebodyfont[ebgaramond]
\usebodyfont[erewhon]
\usebodyfont[kpfonts]
\usebodyfont[libertinus]
\usebodyfont[lucida]
\usebodyfont[minion]
\usebodyfont[modern]
\usebodyfont[newcomputermodern-book]
\usebodyfont[pagella]
\usebodyfont[schola]
\usebodyfont[stixtwo]
\usebodyfont[termes]
\usebodyfont[xcharter]

\starttext

\startbuffer
(a) (f) [f] \{f\} f: f; f! f? f\textbar f* f@ f& f/ f\textbackslash
\stopbuffer

\starttexdefinition ugly #1
    \startsubject[title=#1]
        \start
            \switchtobodyfont[#1]
            {\tf \getbuffer}\blank[small]
            {\bf \getbuffer}\blank[small]
            {\it \getbuffer}\blank[small]
            {\bi \getbuffer}\blank[big]
        \stop
    \stopsubject
\stoptexdefinition

\ugly{bonum}
\ugly{cambria}
\ugly{concrete}
\ugly{dejavu}
\ugly{ebgaramond}
\ugly{erewhon}
\ugly{kpfonts}
\ugly{libertinus}
\ugly{lucida}
\ugly{minion}
\ugly{modern}
\ugly{newcomputermodern-book}
\ugly{pagella}
\ugly{schola}
\ugly{stixtwo}
\ugly{termes}
\ugly{xcharter}

\stoptext
