summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fontsetup
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-21 01:04:17 +0000
committerKarl Berry <karl@freefriends.org>2023-10-21 01:04:17 +0000
commitf25fb81386cb98fecf6d661e519c31d062c24dd3 (patch)
tree5abc74da337a271b614bd08d06d0dc1c67f06603 /Master/texmf-dist/tex/latex/fontsetup
parent6e144ed4f882cc39d53ffbb38fc7ea377fc39ec5 (diff)
fontsetup (21oct23)
git-svn-id: svn://tug.org/texlive/trunk@68602 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fontsetup')
-rw-r--r--Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty39
1 files changed, 37 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
index f68237105b6..5d40b84f277 100644
--- a/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
+++ b/Master/texmf-dist/tex/latex/fontsetup/fontsetup.sty
@@ -70,6 +70,9 @@
\newif\if@varnothing
\DeclareOption{varnothing}{\@varnothingtrue}
%
+\newif\if@amsbb
+\DeclareOption{amsbb}{\@amsbbtrue}
+%
\ProcessOptions
%provide a test to know if a 16bits TeX is used.
@@ -92,15 +95,31 @@
%
\if@upint
\if@varnothing
+ \if@amsbb
+ \setmathfont[StylisticSet=2,StylisticSet=3,CharacterVariant=1]{NewCMMath-Book.otf}
+ \else
\setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf}
+ \fi
\else
+ \if@amsbb
+ \setmathfont[StylisticSet=2,StylisticSet=3]{NewCMMath-Book.otf}
+ \else
\setmathfont[StylisticSet=2]{NewCMMath-Book.otf}
+ \fi
\fi
\else
\if@varnothing
+ \if@amsbb
+ \setmathfont[StylisticSet=3,CharacterVariant=1]{NewCMMath-Book.otf}
+ \else
\setmathfont[CharacterVariant=1]{NewCMMath-Book.otf}
+ \fi
\else
+ \if@amsbb
+ \setmathfont[StylisticSet=3]{NewCMMath-Book.otf}
+ \else
\setmathfont{NewCMMath-Book.otf}
+ \fi
\fi
\fi
%
@@ -143,15 +162,31 @@
\RequirePackage{fspolddefault}
\if@upint
\if@varnothing
- \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Book.otf}
+ \if@amsbb
+ \setmathfont[StylisticSet=2,StylisticSet=3,CharacterVariant=1]{NewCMMath-Regular.otf}
+ \else
+ \setmathfont[StylisticSet=2,CharacterVariant=1]{NewCMMath-Regular.otf}
+ \fi
\else
+ \if@amsbb
+ \setmathfont[StylisticSet=2,StylisticSet=3]{NewCMMath-Regular.otf}
+ \else
\setmathfont[StylisticSet=2]{NewCMMath-Regular.otf}
+ \fi
\fi
\else
\if@varnothing
- \setmathfont[CharacterVariant=1]{NewCMMath-Book.otf}
+ \if@amsbb
+ \setmathfont[StylisticSet=3,CharacterVariant=1]{NewCMMath-Regular.otf}
+ \else
+ \setmathfont[CharacterVariant=1]{NewCMMath-Regular.otf}
+ \fi
\else
+ \if@amsbb
+ \setmathfont[StylisticSet=3]{NewCMMath-Regular.otf}
+ \else
\setmathfont{NewCMMath-Regular.otf}
+ \fi
\fi
\fi
\or