Skip to content

Commit

Permalink
Don't set math families 2 and 3 for Unicode math
Browse files Browse the repository at this point in the history
Setting math families 2 and 3 doesn't do anything special for "new math
fonts"

See mlist.c:fixup_math_parameters in LuaTeX source:

https://github.com/TeX-Live/luatex/blob/eee644d052c295920d378ef579a96fcca497af9a/source/texk/web2c/luatexdir/tex/mlist.c#L478
  • Loading branch information
vlasakm committed Jul 21, 2021
1 parent af62236 commit 34a1cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optex/base/math-unicode.opm
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@
\_def\_loadumathfamily #1 #2#3 {%
\_edef\_optsizesave{\_the\_optsize}%
\_optsize=\_sizemtext \_font\_mF=\_umathname{#2}{\_textmff #3} at\_optsize
\_textfont#1=\_mF \_ifnum#1=1 \_textfont2=\_mF \_textfont3=\_mF \_fi
\_textfont#1=\_mF
\_optsize=\_sizemscript \_font\_mF=\_umathname{#2}{\_scriptmff #3} at\_optsize
\_scriptfont#1=\_mF \_ifnum#1=1 \_scriptfont2=\_mF \_scriptfont3=\_mF \_fi
\_scriptfont#1=\_mF
\_optsize=\_sizemsscript \_font\_mF=\_umathname{#2}{\_sscriptmff #3} at\_optsize
\_scriptscriptfont#1=\_mF \_ifnum#1=1 \_scriptscriptfont2=\_mF \_scriptscriptfont3=\_mF \_fi
\_scriptscriptfont#1=\_mF
\_optsize=\_optsizesave \_ptmunit=\_ptunit
}
\_def\_textmff{} \_def\_scriptmff{+ssty=0;} \_def\_sscriptmff{+ssty=1;}
Expand Down

0 comments on commit 34a1cea

Please sign in to comment.