On Wed, 2 Feb 2011, Wolfgang Schuster wrote:
Besides moving \setlayer after \starttext you can just load a font before the \setlayer settings, e.g.
\setupbodyfont[modern] \definelayer[…] \setlayer[…]{…} \starttext … \stoptext
Perhaps a redirection like \setlayer[...]{\setups{layersetup}} might also work (untested).
or you use \startproduct which is normally always written as first line and acts \starttext which preloads then the Latin Modern fonts, e.g.
There is no point in not loading the fonts in the begining if one would then have to come up with clever ways to force loading of a font. I hope that there is a more robust solution so that \setuplayer[...]{...} \starttext ... \stoptext just works.
The bodymatter enviroment isn’t necessary here because it’s always enabled when you other sectionblockenvironment is used but it’s useful to have something which separates the preamble from the text.
One could also use \starttext ... \stoptext here. Aditya