From f25fb81386cb98fecf6d661e519c31d062c24dd3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 21 Oct 2023 01:04:17 +0000 Subject: fontsetup (21oct23) git-svn-id: svn://tug.org/texlive/trunk@68602 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/fontsetup/fontsetup.sty | 39 ++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex') 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 -- cgit v1.2.3