forked from zhanggyb/nndl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
westernfonts.tex
106 lines (88 loc) · 2.53 KB
/
westernfonts.tex
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
% file: westernfonts.tex
\newcommand{\fontdir}[0]{/usr/local/texlive/2015/texmf-dist/fonts/}
\newcommand{\robotodir}[0]{\fontdir/truetype/google/roboto/}
\newcommand{\sourcecodeprodir}[0]{\fontdir/opentype/adobe/sourcecodepro/}
\newcommand{\sourceserifprodir}[0]{\fontdir/opentype/adobe/sourceserifpro/}
\newcommand{\robotomd}[0]{Light}
\newcommand{\robotobf}[0]{Medium}
\newcommand{\robotoit}[0]{LightItalic}
\newcommand{\robotobi}[0]{MediumItalic}
\newcommand{\codepromd}[0]{Light}
\newcommand{\codeprobf}[0]{Medium}
\newcommand{\codeproit}[0]{LightIt}
\newcommand{\codeprobi}[0]{MediumIt}
\newcommand{\serifpromd}[0]{Light}
\newcommand{\serifprobf}[0]{Semibold}
\newfontfamily\Roboto{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Regular,
BoldFont=*-Bold,
ItalicFont=*-RegularItalic,
BoldItalicFont=*-BoldItalic]
\newfontfamily\SourceCodePro{SourceCodePro}[
Extension=.otf,
Path=\sourcecodeprodir,
UprightFont=*-\codepromd,
BoldFont=*-\codeprobf,
ItalicFont=*-\codeproit,
BoldItalicFont=*-\codeprobi]
\newfontfamily\SourceSerifPro{SourceSerifPro}[
Extension=.otf,
Path=\sourceserifprodir,
UprightFont=*-\serifpromd,
BoldFont=*-\serifprobf]
\newcommand{\serif}[0]{\SourceSerifPro}
\newfontfamily\RobotoThin{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Thin,
ItalicFont=*-ThinItalic]
\newfontfamily\RobotoLight{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Light,
ItalicFont=*-LightItalic]
\newfontfamily\RobotoRegular{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Regular,
ItalicFont=*-RegularItalic]
\newfontfamily\RobotoMedium{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Medium,
ItalicFont=*-MediumItalic]
\newfontfamily\RobotoBold{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Bold,
ItalicFont=*-BoldItalic]
\newfontfamily\RobotoBlack{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-Black,
ItalicFont=*-BlackItalic]
\newcommand{\setdefaultwesternfonts}[0]{
\setmainfont{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-\robotomd,
BoldFont=*-\robotobf,
ItalicFont=*-\robotoit,
BoldItalicFont=*-\robotobi]
\setsansfont{Roboto}[
Extension=.ttf,
Path=\robotodir,
UprightFont=*-\robotomd,
BoldFont=*-\robotobf,
ItalicFont=*-\robotoit,
BoldItalicFont=*-\robotobi]
\setmonofont{SourceCodePro}[
Extension=.otf,
Path=\sourcecodeprodir,
UprightFont=*-\codepromd,
BoldFont=*-\codeprobf,
ItalicFont=*-\codeproit,
BoldItalicFont=*-\codeprobi]
}