diff options
author | Marius <mariausol@gmail.com> | 2011-06-28 13:20:15 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-06-28 13:20:15 +0300 |
commit | 0a121e68091b2b0682357f58d513e4babb4338e2 (patch) | |
tree | 734eaf2337ef17345acec53e250031a0d5986aae /tex/context/base/font-ini.mkiv | |
parent | 482d1314048617c18cf896c62c01b47d9d303a88 (diff) | |
download | context-0a121e68091b2b0682357f58d513e4babb4338e2.tar.gz |
beta 2011.06.28 12:19
Diffstat (limited to 'tex/context/base/font-ini.mkiv')
-rw-r--r-- | tex/context/base/font-ini.mkiv | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/tex/context/base/font-ini.mkiv b/tex/context/base/font-ini.mkiv index 3b05eea90..87c75defc 100644 --- a/tex/context/base/font-ini.mkiv +++ b/tex/context/base/font-ini.mkiv @@ -574,15 +574,18 @@ \let\currentmathsize\!!plusthree\let\fontbody\scriptscriptface\dodosetmathfamily\scriptscriptfont#1% \let\currentmathsize\!!plustwo \let\fontbody\scriptface \dodosetmathfamily\scriptfont #1% \let\currentmathsize\!!plusone \let\fontbody\textface \dodosetmathfamily\textfont #1% - \expandafter\xdef\csname\??ff:\fontclass:\textface:\c!mm:#2:\fontsize\endcsname{% - \scriptscriptfont#1\csname*\fontclass\scriptscriptface\c!mm#23\fontsize3*\endcsname - \scriptfont #1\csname*\fontclass\scriptface \c!mm#22\fontsize2*\endcsname - \textfont #1\csname*\fontclass\textface \c!mm#21\fontsize1*\endcsname - }% + \dosavefontclassmathfamily#1#2% \let\currentmathsize\empty \let\fontbody\savedfontbody \autofontsizefalse} +\def\dosavefontclassmathfamily#1#2% + {\expandafter\xdef\csname\??ff:\fontclass:\textface:\c!mm:#2:\fontsize\endcsname{% + \scriptscriptfont#1\csname*\fontclass\scriptscriptface\c!mm#23\fontsize3*\endcsname + \scriptfont #1\csname*\fontclass\scriptface \c!mm#22\fontsize2*\endcsname + \textfont #1\csname*\fontclass\textface \c!mm#21\fontsize1*\endcsname + }} + % It would be nice if characters could be defined in a neutral way (say fam 255) and % be mapped to a real family during noad list construction. However, this changes % tex in critical places so for the moment we simulate this using manipulation. @@ -711,15 +714,29 @@ % we need \fontid (or could store this for a fontclass) -\appendtoks - \edef\currentmathfontmr{\fontname\textfont\zerocount}% - \edef\currentmathfontmb{\fontname\textfont\plusthree}% - \ifx\currentmathfontmr\currentmathfontmb - \letvalue{\??ff:ms:\fontclass}\dosetmathpartialboldstrategy % enables partial bold math - \else - \letvalue{\??ff:ms:\fontclass}\dosetmathfullboldstrategy % enables full bold math - \fi -\to \mathstrategies +\ifdefined\fontid + + \appendtoks + \ifnum\fontid\textfont\zerocount=\fontid\textfont\plusthree + \letvalue{\??ff:ms:\fontclass}\dosetmathpartialboldstrategy % enables partial bold math + \else + \letvalue{\??ff:ms:\fontclass}\dosetmathfullboldstrategy % enables full bold math + \fi + \to \mathstrategies + +\else + + \appendtoks + \edef\currentmathfontmr{\fontname\textfont\zerocount}% + \edef\currentmathfontmb{\fontname\textfont\plusthree}% + \ifx\currentmathfontmr\currentmathfontmb + \letvalue{\??ff:ms:\fontclass}\dosetmathpartialboldstrategy % enables partial bold math + \else + \letvalue{\??ff:ms:\fontclass}\dosetmathfullboldstrategy % enables full bold math + \fi + \to \mathstrategies + +\fi \def\synchronizemathboldstrategy {\csname\??ff:ms:\fontclass\endcsname} |