blob: 0b08845426460edf8a6121edc0160e9db9c2f3ce (
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
|
%% droid-drv.tex
%% Copyright 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{slant}{213}
\setint{smallcapsscale}{800}
\substitutesilent{scit}{scsl}
\recordtransforms{droid-rec.tex}
\foreach(e){01,02,03,04}
\transformfont{DroidSerif-Regular-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-Regular}}}
\transformfont{DroidSerif-Italic-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-Italic}}}
\transformfont{DroidSerif-Regular-Slanted-\str{e}}{\slantfont{\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-Regular}}}
\transformfont{DroidSerif-Italic-Upright-\str{e}}{\slantfont{-\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-Italic}}}
\transformfont{DroidSerif-Bold-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-Bold}}}
\transformfont{DroidSerif-BoldItalic-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-BoldItalic}}}
\transformfont{DroidSerif-Bold-Slanted-\str{e}}{\slantfont{\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-Bold}}}
\transformfont{DroidSerif-BoldItalic-Upright-\str{e}}{\slantfont{-\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSerif-BoldItalic}}}
\transformfont{DroidSans-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSans}}}
\transformfont{DroidSans-Slanted-\str{e}}{\slantfont{\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSans}}}
\transformfont{DroidSans-Bold-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSans-Bold}}}
\transformfont{DroidSans-Bold-Slanted-\str{e}}{\slantfont{\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSans-Bold}}}
\transformfont{DroidSansMono-\str{e}}{\reencodefont{droid-\str{e}}{\fromafm{DroidSansMono}}}
\transformfont{DroidSansMono-Slanted-\str{e}}{\slantfont{\int{slant}}\reencodefont{droid-\str{e}}{\fromafm{DroidSansMono}}}
\endfor(e)
\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 droid@scale\string\endcsname\string\relax}
\out_line{\space\space\string\let\string\droid@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
\input droidserif-drv.tex
\input droidsans-drv.tex
\input droidsansmono-drv.tex
\endrecordtransforms
\bye
|