% Context file
% Filename: test-simplefonts.tex
% 
% 09-12-2011
% Copyright (c) 2011 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]

\usemodule[simplefonts]
\setmainfont[arial]

\setuplayout
	[topspace=2.5cm,
	backspace=1.5cm,
	header=0pt,
	footer=1.5\bodyfontsize,
	height=middle,
	width=middle]
\mainlanguage[nl]

\setuppagenumbering[location={footer,right},alternative=doublesided]

\definelayer[Cover][width=\paperwidth,height=\paperheight]

\startsetups Cover:setups
   \setmainfont[arial]
\stopsetups

\startsetups[Main]
   \setmainfont[palatino]
\stopsetups

%\showframe



\starttext

\setlayerframed
   [Cover]
    [x=-\marginwidth,y=-\topspace]
   [setups=Cover:setups,width=\paperwidth,height=\paperheight,frame=off]
   {\godown[.3\textheight]
    This is the Front Cover\vfill}

\startstandardmakeup[page=yes,doublesided=yes]
 \placelayer[Cover]
\stopstandardmakeup

\page[right]
\setups[Main]

\startsubject[title=The content]
\placecontent
\stopsubject

\page[right]

\dorecurse{3}
   {\startsection[title=Section]\input tufte \stopsection\page}

\startsection[title=Section]\input tufte \stopsection

% \page[left]
% \page[empty]

\setups[Cover]


\setlayerframed
   [Cover]
   [x=-\marginwidth,y=-\topspace]
   [setups=Cover:setups,width=\paperwidth,height=\paperheight,frame=off]
   {\godown[.3\textheight]
    This is the Back Cover\vfill}
    
\startstandardmakeup[page=left,doublesided=no]
   \placelayer[Cover]
\stopstandardmakeup


\stoptext