Am 16.12.2011 um 00:13 schrieb Philipp A.:
> 2011/12/15 Wolfgang Schuster <[email protected]>
> There is no way for me to fix this because it’s a context bug. You can see
> the effect with the following example, when you load LM before Pagella the
> heading use LM Math but when you load Pagella before LM Palatino math is used
> for the heading.
>
> \setupbodyfont[modern]
> \setupbodyfont[pagella]
>
> \setuphead[section][style={\ss\bfb}]
>
> \starttext
> \section{Wat? $y=x^2$} $y=x^2$
> \stoptext
>
> Wolfgang
>
>
> umm, so this happens because this bug exists and simplefonts sets the fonts
> on module load?
Yes.
> is there a way to fix it or is an official fix on the way?
Wait for Hans to fix it and use in the meantime
\usemodule[simplefonts]
\definesimplefonttypeface[mainface][Cambria]
\definesimplefonttypeface[mainface][Ubuntu] [style=sans]
\definesimplefonttypeface[mainface][cambria][style=math]
\setupbodyfont[mainface]
\setuphead[section][style={\ss\bfb}]
\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext
or
\definetypeface[mainface][rm][specserif][Cambria]
\definetypeface[mainface][ss][specsans] [Ubuntu]
\definetypeface[mainface][mm][math] [cambria]
\setupbodyfont[mainface]
\setuphead[section][style={\ss\bfb}]
\starttext
\section{Wat? $y=x^2$} $y=x^2$
\stoptext
Wolfgang___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________