summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty26
1 files changed, 22 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
index 32ed9bc0d4b..4d5dfb58229 100644
--- a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
+++ b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
@@ -1,6 +1,6 @@
%\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{fontsetup}[2019/12/20 Easy font setup by Antonis Tsolomitis]
-\typeout{fontsetup: Easy font setup by Antonis Tsolomitis}
+\ProvidesPackage{fontsetup}[2020/12/14 Easy font setup by Antonis Tsolomitis]
+\typeout{fontsetup: Easy font setup by Antonis Tsolomitis}
\chardef\fontsetupdefault=0 %
\chardef\fontsetupgfsartemisia=1
@@ -43,6 +43,10 @@
\DeclareOption{libertinus}{\chardef\fontsetupfont\fontsetuplibertinus}
\DeclareOption{olddefault}{\chardef\fontsetupfont\fontsetupolddefault}
\DeclareOption*{\PackageWarning{fontsetup}{Unknown ‘\CurrentOption’}}
+%
+\newif\if@upint
+\DeclareOption{upint}{\@upinttrue}
+%
\ProcessOptions
%provide a test to know if a 16bits TeX is used.
@@ -62,7 +66,14 @@
%The user runs unicode engine
\ifcase\fontsetupfont
\RequirePackage{fspdefault}
-\or
+%
+\if@upint
+\setmathfont[StylisticSet=2]{NewCMMath-Book.otf}
+\else
+\setmathfont{NewCMMath-Book.otf}
+\fi
+%
+ \or
\RequirePackage{fspgfsartemisiaot}
\or
\RequirePackage{fspgfsdidotot}
@@ -98,7 +109,14 @@
\or
\RequirePackage{libertinus-otf}
\or
- \RequirePackage{fspolddefault}
+\RequirePackage{fspolddefault}
+%
+\if@upint
+\setmathfont[StylisticSet=2]{NewCMMath-Regular.otf}
+\else
+\setmathfont{NewCMMath-Regular.otf}
+\fi
+%
\fi
}{%the user runs 8bit engine
\relax}