ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
*  fonts don´t get correct assigned in layers
@ 2010-05-26 11:26 Bernhard Rosensteiner
  2010-05-26 13:59 ` Peter Rolf
  0 siblings, 1 reply; 4+ messages in thread
From: Bernhard Rosensteiner @ 2010-05-26 11:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,
please have a look at the following minimal example:


\setuppagenumbering[state=stop]
\defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] %font assignement in style key don´t bleed through in layers
\definelayer[deviation][width=\paperwidth, height=\paperheight, preset=lefttop]

\setlayer[deviation][hoffset=\backspace,voffset=4cm, hoffset=1cm]{\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}}

\setupbodyfont[termes,12pt]

\starttext

\setupbackgrounds[page][background={deviation}]

\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected results (i.e. Helvetica)

\stoptext


is this normal behaviour or a bug?
i use ConTeXt  ver: 2010.05.24 13:05 MKIV

best regards
Bernhard



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  fonts don´t get correct assigned in layers
  2010-05-26 11:26 fonts don´t get correct assigned in layers Bernhard Rosensteiner
@ 2010-05-26 13:59 ` Peter Rolf
  2010-05-26 15:55   ` Bernhard Rosensteiner
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2010-05-26 13:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 26.05.2010 13:26, schrieb Bernhard Rosensteiner:
> Hello,
> please have a look at the following minimal example:
> 
> 
> \setuppagenumbering[state=stop]
> \defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] %font assignement in style key don´t bleed through in layers
> \definelayer[deviation][width=\paperwidth, height=\paperheight, preset=lefttop]
> 
> \setlayer[deviation][hoffset=\backspace,voffset=4cm, hoffset=1cm]{\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}}
> 
> \setupbodyfont[termes,12pt]
> 
> \starttext
> 
> \setupbackgrounds[page][background={deviation}]
> 
> \Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected results (i.e. Helvetica)
> 
> \stoptext
> 
> 
> is this normal behaviour or a bug?

normal behaviour. the bodyfont is set *after* the first stuff is already
written to the layer...

Best wishes, Peter

> i use ConTeXt  ver: 2010.05.24 13:05 MKIV
> 
> best regards
> Bernhard
> 
> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
> 

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  fonts don´t get correct assigned in layers
  2010-05-26 13:59 ` Peter Rolf
@ 2010-05-26 15:55   ` Bernhard Rosensteiner
  2010-05-26 16:21     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Bernhard Rosensteiner @ 2010-05-26 15:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

ah, i see. found already solution:

\setuppagenumbering[state=stop]
\defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] %font assignement in style key don´t bleed through in layers
\definelayer[deviation][width=\paperwidth, height=\paperheight, preset=lefttop]

\startsetups deviation
> 
\setlayer[deviation][hoffset=\backspace,voffset=4cm, hoffset=1cm]{\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}}
\stopsetups

\setupbodyfont[termes,12pt]

\starttext

\setupbackgrounds[page][setups=deviation, background={deviation}]

\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected results (i.e. Helvetica)

\stoptext



best regards
Bernhard



Am 26.05.2010 um 15:59 schrieb Peter Rolf:

> Am 26.05.2010 13:26, schrieb Bernhard Rosensteiner:
>> Hello,
>> please have a look at the following minimal example:
>> 
>> 
>> \setuppagenumbering[state=stop]
>> \defineornament[Bildbeschriftung][alternative=b,preset=lefttop][style=sstf] %font assignement in style key don´t bleed through in layers
>> \definelayer[deviation][width=\paperwidth, height=\paperheight, preset=lefttop]
>> 
>> \setlayer[deviation][hoffset=\backspace,voffset=4cm, hoffset=1cm]{\Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}}
>> 
>> \setupbodyfont[termes,12pt]
>> 
>> \starttext
>> 
>> \setupbackgrounds[page][background={deviation}]
>> 
>> \Bildbeschriftung{This should be Sansserif Helvetica}{\externalfigure[cow][height=.4\textheight]}%here i get expected results (i.e. Helvetica)
>> 
>> \stoptext
>> 
>> 
>> is this normal behaviour or a bug?
> 
> normal behaviour. the bodyfont is set *after* the first stuff is already
> written to the layer...
> 
> Best wishes, Peter
> 
>> i use ConTeXt  ver: 2010.05.24 13:05 MKIV
>> 
>> best regards
>> Bernhard
>> 
>> 
>> 
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki     : http://contextgarden.net
>> ___________________________________________________________________________________
>> 
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re:  fonts don´t get correct assigned in layers
  2010-05-26 15:55   ` Bernhard Rosensteiner
@ 2010-05-26 16:21     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2010-05-26 16:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 26.05.10 17:55, schrieb Bernhard Rosensteiner:
> ah, i see. found already solution:
>    

another way is to force helvetica/heros in the ornament with 
'style={\switchtobodyfont[heros]}', it's slower but doesn't depend on 
the bodyfont

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-26 16:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-26 11:26 fonts don´t get correct assigned in layers Bernhard Rosensteiner
2010-05-26 13:59 ` Peter Rolf
2010-05-26 15:55   ` Bernhard Rosensteiner
2010-05-26 16:21     ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).