diff options
author | Hans Hagen <pragma@wxs.nl> | 2023-01-24 15:11:58 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2023-01-24 15:11:58 +0100 |
commit | b47e8c2cdeeab0bcdb1c4c32328c933f3f8599de (patch) | |
tree | 8e32282155744f2b0a812eff2fe88bbc919a70b4 /tex/context/base/mkxl/font-mat.mklx | |
parent | 0caec226a633182402b349c3ac5b3bf9e0bc76c2 (diff) | |
download | context-b47e8c2cdeeab0bcdb1c4c32328c933f3f8599de.tar.gz |
2023-01-24 13:50:00
Diffstat (limited to 'tex/context/base/mkxl/font-mat.mklx')
-rw-r--r-- | tex/context/base/mkxl/font-mat.mklx | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/tex/context/base/mkxl/font-mat.mklx b/tex/context/base/mkxl/font-mat.mklx index 33a9f3623..942c2fecd 100644 --- a/tex/context/base/mkxl/font-mat.mklx +++ b/tex/context/base/mkxl/font-mat.mklx @@ -384,10 +384,12 @@ \to \everymathematics \protected\def\font_helpers_synchronize_math_family_mr - {\c_attr_mathfamily\zerocount} + {\c_attr_mathfamily\zerocount + \font_helpers_synchronize_math_parameters_normal} \protected\def\font_helpers_synchronize_math_family_mb - {\c_attr_mathfamily\ifconditional\c_font_pseudo_bold_math_state\plussix\else\plusthree\fi} + {\c_attr_mathfamily\ifconditional\c_font_pseudo_bold_math_state\plussix\else\plusthree\fi + \font_helpers_synchronize_math_parameters_bold} \installcorenamespace{fontmathsynchronizer} \installcorenamespace{fontmathstoredstrategy} @@ -535,15 +537,21 @@ %D This is nasty, as the engine only stores the last set family parameters (per style) which %D in our case can be bold. -\def\font_helpers_synchronize_math_parameters +\def\font_helpers_synchronize_math_parameters_normal {\c_math_last_family_used\mathstylefontid\textstyle\zerocount - \textfont \zerocount\textfont \zerocount - \scriptfont \zerocount\scriptfont \zerocount - \scriptscriptfont\zerocount\scriptscriptfont\zerocount} + \textfont \c_font_fam_mr\textfont \c_font_fam_mr + \scriptfont \c_font_fam_mr\scriptfont \c_font_fam_mr + \scriptscriptfont\c_font_fam_mr\scriptscriptfont\c_font_fam_mr} + +\def\font_helpers_synchronize_math_parameters_bold + {\c_math_last_family_used\mathstylefontid\textstyle\zerocount + \textfont \c_attr_mathfamily\textfont \c_attr_mathfamily + \scriptfont \c_attr_mathfamily\scriptfont \c_attr_mathfamily + \scriptscriptfont\c_attr_mathfamily\scriptscriptfont\c_attr_mathfamily} \appendtoks \ifnum\c_math_last_family_used=\mathstylefontid\textstyle\zerocount\else - \font_helpers_synchronize_math_parameters + \font_helpers_synchronize_math_parameters_normal \fi \to\everybodyfont |