summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/lato/lato-drv.tex
blob: 943e64db5ae9bd961c2f91ce4b948df4bde2ea86 (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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
%% lato-drv.tex
%% Copyright 2010, 2011 Mohamed El Morabity
%
% This work may be distributed and/or modified under the conditions of the LaTeX
% Project Public License, either version 1.3 of this license or (at your option)
% any later version. The latest version of this license is in
% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of all
% distributions of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Mohamed El Morabity
%
% This work consists of all files listed in manifest.txt.

\input fontinst.sty


\setint{smallcapsscale}{800}

\substitutesilent{scsl}{scit}


\recordtransforms{lato-rec.tex}


\foreach(encoding){ot1,t1,ts1}
  \transformfont{raw-\str{encoding}-Lato-Regular}{\reencodefont{\str{encoding}}{\fromafm{Lato-Regular}}}
  \transformfont{raw-\str{encoding}-Lato-Italic}{\reencodefont{\str{encoding}}{\fromafm{Lato-Italic}}}
  \transformfont{raw-\str{encoding}-Lato-Bold}{\reencodefont{\str{encoding}}{\fromafm{Lato-Bold}}}
  \transformfont{raw-\str{encoding}-Lato-BoldItalic}{\reencodefont{\str{encoding}}{\fromafm{Lato-BoldItalic}}}
  \transformfont{raw-\str{encoding}-Lato-Black}{\reencodefont{\str{encoding}}{\fromafm{Lato-Black}}}
  \transformfont{raw-\str{encoding}-Lato-BlackItalic}{\reencodefont{\str{encoding}}{\fromafm{Lato-BlackItalic}}}
  \transformfont{raw-\str{encoding}-Lato-Light}{\reencodefont{\str{encoding}}{\fromafm{Lato-Light}}}
  \transformfont{raw-\str{encoding}-Lato-LightItalic}{\reencodefont{\str{encoding}}{\fromafm{Lato-LightItalic}}}
  \transformfont{raw-\str{encoding}-Lato-Hairline}{\reencodefont{\str{encoding}}{\fromafm{Lato-Hairline}}}
  \transformfont{raw-\str{encoding}-Lato-HairlineItalic}{\reencodefont{\str{encoding}}{\fromafm{Lato-HairlineItalic}}}
\endfor(encoding)

\foreach(encoding){fixlatin,fixtextcomp}
  \transformfont{raw-\str{encoding}-Lato-Regular}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-Regular}}}
  \transformfont{raw-\str{encoding}-Lato-Italic}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-Italic}}}
  \transformfont{raw-\str{encoding}-Lato-Bold}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-Bold}}}
  \transformfont{raw-\str{encoding}-Lato-BoldItalic}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-BoldItalic}}}
  \transformfont{raw-\str{encoding}-Lato-Black}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-Black}}}
  \transformfont{raw-\str{encoding}-Lato-BlackItalic}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-BlackItalic}}}
  \transformfont{raw-\str{encoding}-Lato-Light}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-Light}}}
  \transformfont{raw-\str{encoding}-Lato-LightItalic}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-LightItalic}}}
  \transformfont{raw-\str{encoding}-Lato-Hairline}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-Hairline}}}
  \transformfont{raw-\str{encoding}-Lato-HairlineItalic}{\reencodefont{lato-\str{encoding}}{\fromafm{Lato-HairlineItalic}}}
\endfor(encoding)

\transformfont{raw-dotlessj-Lato-Regular}{\reencodefont{lato-dotlessj}{\fromafm{Lato-Regular-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-Italic}{\reencodefont{lato-dotlessj}{\fromafm{Lato-Italic-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-Bold}{\reencodefont{lato-dotlessj}{\fromafm{Lato-Bold-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-BoldItalic}{\reencodefont{lato-dotlessj}{\fromafm{Lato-BoldItalic-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-Black}{\reencodefont{lato-dotlessj}{\fromafm{Lato-Black-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-BlackItalic}{\reencodefont{lato-dotlessj}{\fromafm{Lato-BlackItalic-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-Light}{\reencodefont{lato-dotlessj}{\fromafm{Lato-Light-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-LightItalic}{\reencodefont{lato-dotlessj}{\fromafm{Lato-LightItalic-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-Hairline}{\reencodefont{lato-dotlessj}{\fromafm{Lato-Hairline-LCDFJ}}}
\transformfont{raw-dotlessj-Lato-HairlineItalic}{\reencodefont{lato-dotlessj}{\fromafm{Lato-HairlineItalic-LCDFJ}}}

\input lato-reglyph


\fontinstcc
\def\fd_family#1#2#3{
   \a_toks{#3}
   \edef\lowercase_file{\lowercase{
     \edef\noexpand\lowercase_file{#1#2.fd}}}
   \lowercase_file
   \open_out{\lowercase_file}
   \out_line{\percent_char~Filename:~\lowercase_file}
   \out_line{\percent_char~Created~by:~tex~\jobname}
   \out_line{\percent_char~Created~using~fontinst~v\fontinstversion}
   \out_line{}
   \out_line{\percent_char~THIS~FILE~SHOULD~BE~PUT~IN~A~TEX~INPUTS~
      DIRECTORY}
   \out_line{}
   \out_line{\string\ProvidesFile{\lowercase_file}}
   \out_lline{[
      \the\year/
      \ifnum10>\month0\fi\the\month/
      \ifnum10>\day0\fi\the\day\space
      Fontinst~v\fontinstversion\space
      font~definitions~for~#1/#2.
   ]}
   \out_line{}
   %%%
   \out_line{\string\expandafter\string\ifx\string\csname\space lato@scale\string\endcsname\string\relax}
   \out_line{\space\space\string\let\string\lato@scale\string\@empty}
   \out_line{\string\fi}
   \out_line{}
   %%%
   \out_line{\string\DeclareFontFamily{#1}{#2}{\the\a_toks}}
   {
      \csname #1-#2\endcsname
      \out_line{}
      \let\do_shape=\substitute_shape
      \csname #1-#2\endcsname
      \let\do_shape=\remove_shape
      \csname #1-#2\endcsname
   }
   \x_cs\g_let{#1-#2}\x_relax
   \out_line{}
   \out_line{\string\endinput}
   \close_out{Font~definitions}
}
\normalcc


\installfonts
\installfamily{OT1}{fla}{}

\installfont{ot1-Lato-Regular}{ot1-Lato-Regular,fixlatin-Lato-Regular,dotlessj-Lato-Regular,newlatin}{ot1}{OT1}{fla}{m}{n}{<->\string\lato@scale}
\installfont{ot1-Lato-Italic}{ot1-Lato-Italic,fixlatin-Lato-Italic,dotlessj-Lato-Italic,newlatin}{ot1}{OT1}{fla}{m}{it}{<->\string\lato@scale}
\installfont{ot1-Lato-Regular-SmallCaps}{ot1-Lato-Regular,fixlatin-Lato-Regular,dotlessj-Lato-Regular,newlatin}{ot1c}{OT1}{fla}{m}{sc}{<->\string\lato@scale}
\installfont{ot1-Lato-Italic-SmallCaps}{ot1-Lato-Italic,fixlatin-Lato-Italic,dotlessj-Lato-Italic,newlatin}{ot1c}{OT1}{fla}{m}{scit}{<->\string\lato@scale}

\installfont{ot1-Lato-Bold}{ot1-Lato-Bold,fixlatin-Lato-Bold,dotlessj-Lato-Bold,newlatin}{ot1}{OT1}{fla}{b}{n}{<->\string\lato@scale}
\installfont{ot1-Lato-BoldItalic}{ot1-Lato-BoldItalic,fixlatin-Lato-BoldItalic,dotlessj-Lato-BoldItalic,newlatin}{ot1}{OT1}{fla}{b}{it}{<->\string\lato@scale}
\installfont{ot1-Lato-Bold-SmallCaps}{ot1-Lato-Bold,fixlatin-Lato-Bold,dotlessj-Lato-Bold,newlatin}{ot1c}{OT1}{fla}{b}{sc}{<->\string\lato@scale}
\installfont{ot1-Lato-BoldItalic-SmallCaps}{ot1-Lato-BoldItalic,fixlatin-Lato-BoldItalic,dotlessj-Lato-BoldItalic,newlatin}{ot1c}{OT1}{fla}{b}{scit}{<->\string\lato@scale}

\installfont{ot1-Lato-Black}{ot1-Lato-Black,fixlatin-Lato-Black,dotlessj-Lato-Black,newlatin}{ot1}{OT1}{fla}{eb}{n}{<->\string\lato@scale}
\installfont{ot1-Lato-BlackItalic}{ot1-Lato-BlackItalic,fixlatin-Lato-BlackItalic,dotlessj-Lato-BlackItalic,newlatin}{ot1}{OT1}{fla}{eb}{it}{<->\string\lato@scale}
\installfont{ot1-Lato-Black-SmallCaps}{ot1-Lato-Black,fixlatin-Lato-Black,dotlessj-Lato-Black,newlatin}{ot1c}{OT1}{fla}{eb}{sc}{<->\string\lato@scale}
\installfont{ot1-Lato-BlackItalic-SmallCaps}{ot1-Lato-BlackItalic,fixlatin-Lato-BlackItalic,dotlessj-Lato-BlackItalic,newlatin}{ot1c}{OT1}{fla}{eb}{scit}{<->\string\lato@scale}

\installfont{ot1-Lato-Light}{ot1-Lato-Light,fixlatin-Lato-Light,dotlessj-Lato-Light,newlatin}{ot1}{OT1}{fla}{l}{n}{<->\string\lato@scale}
\installfont{ot1-Lato-LightItalic}{ot1-Lato-LightItalic,fixlatin-Lato-LightItalic,dotlessj-Lato-LightItalic,newlatin}{ot1}{OT1}{fla}{l}{it}{<->\string\lato@scale}
\installfont{ot1-Lato-Light-SmallCaps}{ot1-Lato-Light,fixlatin-Lato-Light,dotlessj-Lato-Light,newlatin}{ot1c}{OT1}{fla}{l}{sc}{<->\string\lato@scale}
\installfont{ot1-Lato-LightItalic-SmallCaps}{ot1-Lato-LightItalic,fixlatin-Lato-LightItalic,dotlessj-Lato-LightItalic,newlatin}{ot1c}{OT1}{fla}{l}{scit}{<->\string\lato@scale}

\installfont{ot1-Lato-Hairline}{ot1-Lato-Hairline,fixlatin-Lato-Hairline,dotlessj-Lato-Hairline,newlatin}{ot1}{OT1}{fla}{ul}{n}{<->\string\lato@scale}
\installfont{ot1-Lato-HairlineItalic}{ot1-Lato-HairlineItalic,fixlatin-Lato-HairlineItalic,dotlessj-Lato-HairlineItalic,newlatin}{ot1}{OT1}{fla}{ul}{it}{<->\string\lato@scale}
\installfont{ot1-Lato-Hairline-SmallCaps}{ot1-Lato-Hairline,fixlatin-Lato-Hairline,dotlessj-Lato-Hairline,newlatin}{ot1c}{OT1}{fla}{ul}{sc}{<->\string\lato@scale}
\installfont{ot1-Lato-HairlineItalic-SmallCaps}{ot1-Lato-HairlineItalic,fixlatin-Lato-HairlineItalic,dotlessj-Lato-HairlineItalic,newlatin}{ot1c}{OT1}{fla}{ul}{scit}{<->\string\lato@scale}
\endinstallfonts


\installfonts
\installfamily{T1}{fla}{}

\installfont{t1-Lato-Regular}{t1-Lato-Regular,fixlatin-Lato-Regular,dotlessj-Lato-Regular,newlatin}{t1}{T1}{fla}{m}{n}{<->\string\lato@scale}
\installfont{t1-Lato-Italic}{t1-Lato-Italic,fixlatin-Lato-Italic,dotlessj-Lato-Italic,newlatin}{t1}{T1}{fla}{m}{it}{<->\string\lato@scale}
\installfont{t1-Lato-Regular-SmallCaps}{t1-Lato-Regular,fixlatin-Lato-Regular,dotlessj-Lato-Regular,newlatin}{t1c}{T1}{fla}{m}{sc}{<->\string\lato@scale}
\installfont{t1-Lato-Italic-SmallCaps}{t1-Lato-Italic,fixlatin-Lato-Italic,dotlessj-Lato-Italic,newlatin}{t1c}{T1}{fla}{m}{scit}{<->\string\lato@scale}

\installfont{t1-Lato-Bold}{t1-Lato-Bold,fixlatin-Lato-Bold,dotlessj-Lato-Bold,newlatin}{t1}{T1}{fla}{b}{n}{<->\string\lato@scale}
\installfont{t1-Lato-BoldItalic}{t1-Lato-BoldItalic,fixlatin-Lato-BoldItalic,dotlessj-Lato-BoldItalic,newlatin}{t1}{T1}{fla}{b}{it}{<->\string\lato@scale}
\installfont{t1-Lato-Bold-SmallCaps}{t1-Lato-Bold,fixlatin-Lato-Bold,dotlessj-Lato-Bold,newlatin}{t1c}{T1}{fla}{b}{sc}{<->\string\lato@scale}
\installfont{t1-Lato-BoldItalic-SmallCaps}{t1-Lato-BoldItalic,fixlatin-Lato-BoldItalic,dotlessj-Lato-BoldItalic,newlatin}{t1c}{T1}{fla}{b}{scit}{<->\string\lato@scale}

\installfont{t1-Lato-Black}{t1-Lato-Black,fixlatin-Lato-Black,dotlessj-Lato-Black,newlatin}{t1}{T1}{fla}{eb}{n}{<->\string\lato@scale}
\installfont{t1-Lato-BlackItalic}{t1-Lato-BlackItalic,fixlatin-Lato-BlackItalic,dotlessj-Lato-BlackItalic,newlatin}{t1}{T1}{fla}{eb}{it}{<->\string\lato@scale}
\installfont{t1-Lato-Black-SmallCaps}{t1-Lato-Black,fixlatin-Lato-Black,dotlessj-Lato-Black,newlatin}{t1c}{T1}{fla}{eb}{sc}{<->\string\lato@scale}
\installfont{t1-Lato-BlackItalic-SmallCaps}{t1-Lato-BlackItalic,fixlatin-Lato-BlackItalic,dotlessj-Lato-BlackItalic,newlatin}{t1c}{T1}{fla}{eb}{scit}{<->\string\lato@scale}

\installfont{t1-Lato-Light}{t1-Lato-Light,fixlatin-Lato-Light,dotlessj-Lato-Light,newlatin}{t1}{T1}{fla}{l}{n}{<->\string\lato@scale}
\installfont{t1-Lato-LightItalic}{t1-Lato-LightItalic,fixlatin-Lato-LightItalic,dotlessj-Lato-LightItalic,newlatin}{t1}{T1}{fla}{l}{it}{<->\string\lato@scale}
\installfont{t1-Lato-Light-SmallCaps}{t1-Lato-Light,fixlatin-Lato-Light,dotlessj-Lato-Light,newlatin}{t1c}{T1}{fla}{l}{sc}{<->\string\lato@scale}
\installfont{t1-Lato-LightItalic-SmallCaps}{t1-Lato-LightItalic,fixlatin-Lato-LightItalic,dotlessj-Lato-LightItalic,newlatin}{t1c}{T1}{fla}{l}{scit}{<->\string\lato@scale}

\installfont{t1-Lato-Hairline}{t1-Lato-Hairline,fixlatin-Lato-Hairline,dotlessj-Lato-Hairline,newlatin}{t1}{T1}{fla}{ul}{n}{<->\string\lato@scale}
\installfont{t1-Lato-HairlineItalic}{t1-Lato-HairlineItalic,fixlatin-Lato-HairlineItalic,dotlessj-Lato-HairlineItalic,newlatin}{t1}{T1}{fla}{ul}{it}{<->\string\lato@scale}
\installfont{t1-Lato-Hairline-SmallCaps}{t1-Lato-Hairline,fixlatin-Lato-Hairline,dotlessj-Lato-Hairline,newlatin}{t1c}{T1}{fla}{ul}{sc}{<->\string\lato@scale}
\installfont{t1-Lato-HairlineItalic-SmallCaps}{t1-Lato-HairlineItalic,fixlatin-Lato-HairlineItalic,dotlessj-Lato-HairlineItalic,newlatin}{t1c}{T1}{fla}{ul}{scit}{<->\string\lato@scale}
\endinstallfonts


\installfonts
\installfamily{TS1}{fla}{}

\installfont{ts1-Lato-Regular}{ts1-Lato-Regular,fixtextcomp-Lato-Regular,textcomp}{ts1}{TS1}{fla}{m}{n}{<->\string\lato@scale}
\installfont{ts1-Lato-Italic}{ts1-Lato-Italic,fixtextcomp-Lato-Italic,textcomp}{ts1}{TS1}{fla}{m}{it}{<->\string\lato@scale}
\installfontas{ts1-Lato-Regular}{TS1}{fla}{m}{sc}{<->\string\lato@scale}
\installfontas{ts1-Lato-Italic}{TS1}{fla}{m}{scit}{<->\string\lato@scale}

\installfont{ts1-Lato-Bold}{ts1-Lato-Bold,fixtextcomp-Lato-Bold,textcomp}{ts1}{TS1}{fla}{b}{n}{<->\string\lato@scale}
\installfont{ts1-Lato-BoldItalic}{ts1-Lato-BoldItalic,fixtextcomp-Lato-BoldItalic,textcomp}{ts1}{TS1}{fla}{b}{it}{<->\string\lato@scale}
\installfontas{ts1-Lato-Bold}{TS1}{fla}{b}{sc}{<->\string\lato@scale}
\installfontas{ts1-Lato-BoldItalic}{TS1}{fla}{b}{scit}{<->\string\lato@scale}

\installfont{ts1-Lato-Black}{ts1-Lato-Black,fixtextcomp-Lato-Black,textcomp}{ts1}{TS1}{fla}{eb}{n}{<->\string\lato@scale}
\installfont{ts1-Lato-BlackItalic}{ts1-Lato-BlackItalic,fixtextcomp-Lato-BlackItalic,textcomp}{ts1}{TS1}{fla}{eb}{it}{<->\string\lato@scale}
\installfontas{ts1-Lato-Bold}{TS1}{fla}{eb}{sc}{<->\string\lato@scale}
\installfontas{ts1-Lato-BoldItalic}{TS1}{fla}{eb}{scit}{<->\string\lato@scale}

\installfont{ts1-Lato-Light}{ts1-Lato-Light,fixtextcomp-Lato-Light,textcomp}{ts1}{TS1}{fla}{l}{n}{<->\string\lato@scale}
\installfont{ts1-Lato-LightItalic}{ts1-Lato-LightItalic,fixtextcomp-Lato-LightItalic,textcomp}{ts1}{TS1}{fla}{l}{it}{<->\string\lato@scale}
\installfontas{ts1-Lato-Light}{TS1}{fla}{l}{sc}{<->\string\lato@scale}
\installfontas{ts1-Lato-LightItalic}{TS1}{fla}{l}{scit}{<->\string\lato@scale}

\installfont{ts1-Lato-Hairline}{ts1-Lato-Hairline,fixtextcomp-Lato-Hairline,textcomp}{ts1}{TS1}{fla}{ul}{n}{<->\string\lato@scale}
\installfont{ts1-Lato-HairlineItalic}{ts1-Lato-HairlineItalic,fixtextcomp-Lato-HairlineItalic,textcomp}{ts1}{TS1}{fla}{ul}{it}{<->\string\lato@scale}
\installfontas{ts1-Lato-Hairline}{TS1}{fla}{ul}{sc}{<->\string\lato@scale}
\installfontas{ts1-Lato-HairlineItalic}{TS1}{fla}{ul}{scit}{<->\string\lato@scale}
\endinstallfonts


\endrecordtransforms
\bye