diff options
author | Karl Berry <karl@freefriends.org> | 2020-12-14 22:15:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-12-14 22:15:51 +0000 |
commit | 4146d1219b59c8a0fd47df5a19e9d68eba8c543f (patch) | |
tree | 39e57cfa35da35acb0c9ab80736a431739bc0f23 /Master/texmf-dist/tex/latex/fontsetup | |
parent | aa83410db5032f7db20b7f87daee9e6225cea8e8 (diff) |
fontsetup (14dec20)
git-svn-id: svn://tug.org/texlive/trunk@57141 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontsetup')
-rw-r--r-- | Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty | 26 |
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} |