From b020ed8d68a79946c4678a71d049c808244bb5ec Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 5 May 2021 23:57:52 +0900 Subject: Add fontsetup-nonfree --- .../latex/fontsetup-nonfree/fspmsgaramondot.sty | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 texmf-dist/tex/latex/fontsetup-nonfree/fspmsgaramondot.sty (limited to 'texmf-dist/tex/latex/fontsetup-nonfree/fspmsgaramondot.sty') diff --git a/texmf-dist/tex/latex/fontsetup-nonfree/fspmsgaramondot.sty b/texmf-dist/tex/latex/fontsetup-nonfree/fspmsgaramondot.sty new file mode 100644 index 00000000..5f50b8bf --- /dev/null +++ b/texmf-dist/tex/latex/fontsetup-nonfree/fspmsgaramondot.sty @@ -0,0 +1,55 @@ +%\RequirePackage[no-math]{fontspec} +\RequirePackage{fontspec} +\defaultfontfeatures{Ligatures=TeX} +%\RequirePackage[garamond]{mathdesign} + +\setmainfont[% + NFSSFamily=Garamond,% + ItalicFont=Garamond-Italic,% + BoldFont=Garamond-Bold,% + BoldItalicFont=Garamond-Bold,% + SlantedFont=Garamond,% + BoldSlantedFont=Garamond-Bold,% + SlantedFeatures={FakeSlant=0.25},% + BoldSlantedFeatures={FakeSlant=0.25},% +]{Garamond} +\newfontfamily{\greekfont}[% + ItalicFont=Garamond-Italic,% + BoldFont=Garamond-Bold,% + BoldItalicFont=Garamond-Bold,% + SlantedFont=Garamond,% + BoldSlantedFont=Garamond-Bold,% + SlantedFeatures={FakeSlant=0.25},% + BoldSlantedFeatures={FakeSlant=0.25},% +]{Garamond} +\newfontfamily{\defaultfont}[% + NFSSFamily=Garamond,% + ItalicFont=Garamond-Italic,% + BoldFont=Garamond-Bold,% + BoldItalicFont=Garamond-Bold,% + SlantedFont=Garamond,% + BoldSlantedFont=Garamond-Bold,% + SlantedFeatures={FakeSlant=0.25},% + BoldSlantedFeatures={FakeSlant=0.25},% +]{Garamond} + + +\RequirePackage{iftex} +\ifxetex +\RequirePackage[Latin, Greek]{ucharclasses} +\setDefaultTransitions{\defaultfont}{} +\setTransitionsForLatin{\defaultfont}{} +\setTransitionsForGreek{\greekfont}{} +\else +\relax +\fi + +\RequirePackage{unicode-math} +\setmathfont{Garamond-Math.otf} +\setmathfont[range=\mathup/{num,latin,Latin,greek,Greek}]{Garamond} +\setmathfont[range=\mathbfup/{num,latin,Latin,greek,Greek}]{Garamond-Bold} +\setmathfont[range=\mathit/{num,latin,Latin,greek,Greek}]{Garamond-Italic} +\setmathfont[range=\mathbfit/{num,latin,Latin,greek,Greek}]{Garamond-Bold} + + +\endinput -- cgit v1.2.3