Siyuan Hu commited on
Commit
20a552d
·
1 Parent(s): e3a1bdb

revert(template): restore original beamerthemegemini.sty (remove font fallbacks); rely on font install in postBuild instead

Browse files
Files changed (1) hide show
  1. template/beamerthemegemini.sty +9 -31
template/beamerthemegemini.sty CHANGED
@@ -15,39 +15,17 @@
15
  % Fonts
16
  % ====================
17
 
18
- % Prefer Raleway/Lato if available; otherwise fall back to DejaVu or Latin Modern Sans
19
- \usefonttheme{professionalfonts}
20
-
21
- \IfFontExistsTF{Raleway}{
22
- \newfontfamily\Raleway[Ligatures=TeX]{Raleway}
23
- }{
24
- \newfontfamily\Raleway[Ligatures=TeX]{DejaVu Sans}
25
- }
26
 
27
- \IfFontExistsTF{Lato}{
28
- \newfontfamily\Lato[Ligatures=TeX]{Lato}
29
- }{
30
- \newfontfamily\Lato[Ligatures=TeX]{DejaVu Sans}
31
- }
32
 
33
- \IfFontExistsTF{Lato}{
34
- \setsansfont{Lato}[
35
- UprightFont=*-Light,
36
- ItalicFont=*-LightItalic,
37
- BoldFont=*-Regular,
38
- BoldItalicFont=*-Italic
39
- ]
40
- }{
41
- \IfFontExistsTF{DejaVu Sans}{
42
- \setsansfont{DejaVu Sans}[
43
- BoldFont=*-Bold,
44
- ItalicFont=*-Oblique,
45
- BoldItalicFont=*-BoldOblique
46
- ]
47
- }{
48
- \setsansfont{Latin Modern Sans}
49
- }
50
- }
51
 
52
  \setbeamerfont{headline}{family=\Raleway}
53
  \setbeamerfont{headline title}{size=\Huge,series=\bfseries}
 
15
  % Fonts
16
  % ====================
17
 
18
+ \newfontfamily\Raleway[Ligatures=TeX]{Raleway}
19
+ \newfontfamily\Lato[Ligatures=TeX]{Lato}
 
 
 
 
 
 
20
 
21
+ \usefonttheme{professionalfonts}
 
 
 
 
22
 
23
+ \setsansfont{Lato}[
24
+ UprightFont=*-Light,
25
+ ItalicFont=*-LightItalic,
26
+ BoldFont=*-Regular,
27
+ BoldItalicFont=*-Italic
28
+ ]
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  \setbeamerfont{headline}{family=\Raleway}
31
  \setbeamerfont{headline title}{size=\Huge,series=\bfseries}