Joshua Krämer mailto:joshua.kraemer@gmail.com 11. November 2013 17:52 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
Old version of the simplefonts module: \usemodule[simplefonts] \setmainfont[DejaVu Serif] \setsansfont[DejaVu Sans] \setuphead[section][style={\tf\bf}] \starttext \section{One {\ss Two} Three} \input zapf \stoptext New version of the simplefonts module: \setupfontfamily [serif] [DejaVu Serif] \setupfontfamily [sans] [DejaVu Sans] \setuphead[section][style={\tf\bf}] \starttext \section{One {\ss Two} Three} \input zapf \stoptext Wolfgang