ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bernhard Rosensteiner <brosensteiner@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re:  fonts don´t get correct assigned in layers
Date: Wed, 26 May 2010 17:55:08 +0200	[thread overview]
Message-ID: <EE6584D8-8D24-4032-B1E3-09244765716D@gmail.com> (raw)
In-Reply-To: <4BFD2924.9000007@gmx.net>

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
___________________________________________________________________________________


  reply	other threads:[~2010-05-26 15:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-26 11:26 Bernhard Rosensteiner
2010-05-26 13:59 ` Peter Rolf
2010-05-26 15:55   ` Bernhard Rosensteiner [this message]
2010-05-26 16:21     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EE6584D8-8D24-4032-B1E3-09244765716D@gmail.com \
    --to=brosensteiner@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).