Pablo Rodriguez mailto:oinos@gmx.es 4. Februar 2016 um 20:10 On 02/04/2016 07:54 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 4. Februar 2016 um 19:43
But I get two test2 on page 2:
\definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start] \setlayer[test1]{page1} Set the layer content after \starttext or load a font before you set it, otherwise context uses a monospace font as fallback.
Many thanks for the tip. But I really use foregroundstyle with \setlayerframed. This doesn’t matter.
Compare %%%% begin example \definelayer[test] \setupbackgrounds[page][background=test] \setlayerframed[test][x=3cm,y=3cm][foregroundstyle=sans]{Layer} \starttext \page[empty] \stoptext %%%% end example with %%%% begin example \definelayer[test] \setupbackgrounds[page][background=test] \setupbodyfont[modern] \setlayerframed[test][x=3cm,y=3cm][foregroundstyle=sans]{Layer} \starttext \page[empty] \stoptext %%%% end example The foregroundstyle setting has no effect in the first example because no font was loaded at this point. Wolfgang