summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx')
-rw-r--r--Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx11
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx b/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
index 0cd47069e3c..e57fbf45d15 100644
--- a/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
+++ b/Master/texmf-dist/source/latex/unicode-math/um-code-main.dtx
@@ -70,6 +70,7 @@
\bool_if:NTF \l_@@_init_bool
{
+ \bool_gset_true:N \g_@@_main_font_defined_bool
%<LU> \@@_mathparam_store:
\@@_log:n {default-math-font}
}
@@ -89,7 +90,7 @@
\AtBeginDocument { \@@_load_lm_if_necessary: }
\cs_new:Nn \@@_load_lm_if_necessary:
{
- \cs_if_exist:NF \l_@@_fontname_tl
+ \bool_if:NF \g_@@_main_font_defined_bool
{
%<debug>\typeout{SETTING~ DEFAULT~ FONT~(latinmodern-math)}
\setmathfont{latinmodern-math.otf}
@@ -157,7 +158,7 @@
%<LU> Renderer = Basic,
BoldItalicFont = {}, ItalicFont = {},
Script = Math,
-%<LU> FontAdjustment = { \g_@@_luatex_copy_fontdimens_tl },
+%<LU> FontAdjustment = { \@@_luatex_copy_fontdimens: },
\l_@@_unknown_keys_clist
}
@@ -205,7 +206,7 @@
\l_@@_sscript_features_tl
}
} ,
-%<LU> FontAdjustment = { \g_@@_luatex_copy_fontdimens_tl },
+%<LU> FontAdjustment = { \@@_luatex_copy_fontdimens: },
\l_@@_unknown_keys_clist
}
@@ -236,10 +237,10 @@
\tl_set:Nn \g_@@_prime_font_cmd_tl { \l_@@_font }
% \end{macrocode}
%
-% \begin{macro}{\g_@@_luatex_copy_fontdimens_tl}
+% \begin{macro}{\@@_luatex_copy_fontdimens:}
% \begin{macrocode}
%<*LU>
-\tl_const:Nn \g_@@_luatex_copy_fontdimens_tl
+\cs_new_protected:Nn \@@_luatex_copy_fontdimens:
{
\@@_fontdimen_from_param:nn {10} {ScriptPercentScaleDown}
\@@_fontdimen_from_param:nn {11} {ScriptScriptPercentScaleDown}