summaryrefslogtreecommitdiff
path: root/texmf-dist/tex/latex/fontsetup-nonfree/fspmsgaramondot.sty
blob: 5f50b8bf0230c05780d33b31e7d921a656ea61e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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