On 11/26/2021 12:59 PM, jdh via ntg-context wrote:
Here's my MWE:
Objective is to typeset a Chancery font text in the upper lefthand side
of a page, and
then do the main body in some normal font. Then at the very last print
a sign off in
Chancery. For some reason I can't get both to print out as Chancery.
Only one or the
other, but not both.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definefontfamily [mwetest] [sans] [Liberation Sans]
\setupbodyfont [mwe,ss,12pt]
\definelayer[mwe][repeat=yes, preset=lefttop, hoffset=.125in, voffset=.125in]
\setlayer[mwe] { \switchtobodyfont[chancery,8pt] \hskip 5mm Chancery Font
Here }
\setupbackgrounds[page][background=mwe]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\starttext
Normal font text goes here. \blank[4*big]
{ \switchtobodyfont[chancery] This should be Chancery here to. But isn't. }
\blank[2*big]Note that if I comment out the \type{setlayer[mwe]} in the source
file, then the above will print in Chancery.
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I'd like to have the layers in Chancery font and then one last text string in
the body in Chancery font. But I can't get them both to be Chancery. How can
that be done?
chancery is not really a full bodyfont
\definefont[MyChancery][texgyrechorus-mediumitalic*default sa 1]
\definefont[MyChanceryBold][texgyrechorus-mediumitalic*default,boldened-20
sa 1]
{\MyChancery test}
{\MyChanceryBold test}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________