ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Simplefonts and inherited style
@ 2013-11-11 16:52 Joshua Krämer
  2013-11-11 17:31 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Joshua Krämer @ 2013-11-11 16:52 UTC (permalink / raw)
  To: ntg-context-wvrSQK3plZs

Dear list members,

I need a second font in my text for the purpose of mark-up.  This font is 
defined with \definesimplefonttypeface.  If I switch to a font variant 
like bold and afterwards to the second font, the second font doesn't 
inherit this style.  It only works the other way around (switching to the 
second font first, then to another style).  In the following example, the 
whole section title should be typeset in bold, but the part using the 
second font is typeset in the regular style.  How can I make it inherit 
the bold style?

Thank you,
Joshua Krämer

\usemodule[simplefonts]
\setmainfont[dejavuserif]
\definesimplefonttypeface[Secondfont][dejavusans]
\setuphead[section][style={\tf\bf}]

\starttext
\section{One {\Secondfont Two} Three}
\input zapf
\stoptext

___________________________________________________________________________________
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:[~2013-11-11 20:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-11 16:52 Simplefonts and inherited style Joshua Krämer
2013-11-11 17:31 ` Wolfgang Schuster
2013-11-11 19:46   ` Joshua Krämer
2013-11-11 20:00     ` 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).