From 4146d1219b59c8a0fd47df5a19e9d68eba8c543f Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 14 Dec 2020 22:15:51 +0000
Subject: fontsetup (14dec20)

git-svn-id: svn://tug.org/texlive/trunk@57141 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/fontsetup/fontsetup.sty   | 26 ++++++++++++++++++----
 1 file changed, 22 insertions(+), 4 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty')

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}
-- 
cgit v1.2.3

