summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/cantarell/cantarell-drv.tex
blob: 48477321388e5b1b7f11395a2ff62c35806c9e58 (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
%% cantarell-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}{167}
\setint{smallcapsscale}{800}

\substitutesilent{scit}{scsl}


\recordtransforms{cantarell-rec.tex}


\foreach(encoding){ot1,t1,ts1}
  \transformfont{raw-\str{encoding}-Cantarell-Regular}{\reencodefont{\str{encoding}}{\fromafm{Cantarell-Regular}}}
  \transformfont{raw-\str{encoding}-Cantarell-Regular-Slanted}{\slantfont{\int{slant}}\reencodefont{\str{encoding}}{\fromafm{Cantarell-Regular}}}
  \transformfont{raw-\str{encoding}-Cantarell-Bold}{\reencodefont{\str{encoding}}{\fromafm{Cantarell-Bold}}}
  \transformfont{raw-\str{encoding}-Cantarell-Bold-Slanted}{\slantfont{\int{slant}}\reencodefont{\str{encoding}}{\fromafm{Cantarell-Bold}}}
\endfor(encoding)

\foreach(encoding){fixlatin,fixtextcomp}
  \transformfont{raw-\str{encoding}-Cantarell-Regular}{\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Regular}}}
  \transformfont{raw-\str{encoding}-Cantarell-Regular-Slanted}{\slantfont{\int{slant}}\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Regular}}}
  \transformfont{raw-\str{encoding}-Cantarell-Bold}{\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Bold}}}
  \transformfont{raw-\str{encoding}-Cantarell-Bold-Slanted}{\slantfont{\int{slant}}\reencodefont{cantarell-\str{encoding}}{\fromafm{Cantarell-Bold}}}
\endfor(encoding)

\input cantarell-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 cantarell@scale\string\endcsname\string\relax}
   \out_line{\space\space\string\let\string\cantarell@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}{fca}{}

\installfont{ot1-Cantarell-Regular}{ot1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{ot1}{OT1}{fca}{m}{n}{<->\string\cantarell@scale}
\installfont{ot1-Cantarell-Regular-Slanted}{ot1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{ot1}{OT1}{fca}{m}{sl}{<->\string\cantarell@scale}
\installfont{ot1-Cantarell-Regular-SmallCaps}{ot1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{ot1c}{OT1}{fca}{m}{sc}{<->\string\cantarell@scale}
\installfont{ot1-Cantarell-Regular-Slanted-SmallCaps}{ot1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{ot1c}{OT1}{fca}{m}{scsl}{<->\string\cantarell@scale}

\installfont{ot1-Cantarell-Bold}{ot1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{ot1}{OT1}{fca}{b}{n}{<->\string\cantarell@scale}
\installfont{ot1-Cantarell-Bold-Slanted}{ot1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{ot1}{OT1}{fca}{b}{sl}{<->\string\cantarell@scale}
\installfont{ot1-Cantarell-Bold-SmallCaps}{ot1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{ot1c}{OT1}{fca}{b}{sc}{<->\string\cantarell@scale}
\installfont{ot1-Cantarell-Bold-Slanted-SmallCaps}{ot1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{ot1c}{OT1}{fca}{b}{scsl}{<->\string\cantarell@scale}
\endinstallfonts


\installfonts
\installfamily{T1}{fca}{}

\installfont{t1-Cantarell-Regular}{t1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{t1}{T1}{fca}{m}{n}{<->\string\cantarell@scale}
\installfont{t1-Cantarell-Regular-Slanted}{t1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{t1}{T1}{fca}{m}{sl}{<->\string\cantarell@scale}
\installfont{t1-Cantarell-Regular-SmallCaps}{t1-Cantarell-Regular,fixlatin-Cantarell-Regular,newlatin}{t1c}{T1}{fca}{m}{sc}{<->\string\cantarell@scale}
\installfont{t1-Cantarell-Regular-Slanted-SmallCaps}{t1-Cantarell-Regular-Slanted,fixlatin-Cantarell-Regular-Slanted,newlatin}{t1c}{T1}{fca}{m}{scsl}{<->\string\cantarell@scale}

\installfont{t1-Cantarell-Bold}{t1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{t1}{T1}{fca}{b}{n}{<->\string\cantarell@scale}
\installfont{t1-Cantarell-Bold-Slanted}{t1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{t1}{T1}{fca}{b}{sl}{<->\string\cantarell@scale}
\installfont{t1-Cantarell-Bold-SmallCaps}{t1-Cantarell-Bold,fixlatin-Cantarell-Bold,newlatin}{t1c}{T1}{fca}{b}{sc}{<->\string\cantarell@scale}
\installfont{t1-Cantarell-Bold-Slanted-SmallCaps}{t1-Cantarell-Bold-Slanted,fixlatin-Cantarell-Bold-Slanted,newlatin}{t1c}{T1}{fca}{b}{scsl}{<->\string\cantarell@scale}
\endinstallfonts


\installfonts
\installfamily{TS1}{fca}{}

\installfont{ts1-Cantarell-Regular}{ts1-Cantarell-Regular,fixtextcomp-Cantarell-Regular,textcomp}{ts1}{TS1}{fca}{m}{n}{<->\string\cantarell@scale}
\installfont{ts1-Cantarell-Regular-Slanted}{ts1-Cantarell-Regular-Slanted,fixtextcomp-Cantarell-Regular-Slanted,textcomp}{ts1}{TS1}{fca}{m}{sl}{<->\string\cantarell@scale}
\installfontas{ts1-Cantarell-Regular}{TS1}{fca}{m}{sc}{<->\string\cantarell@scale}
\installfontas{ts1-Cantarell-Regular-Slanted}{TS1}{fca}{m}{scsl}{<->\string\cantarell@scale}

\installfont{ts1-Cantarell-Bold}{ts1-Cantarell-Bold,fixtextcomp-Cantarell-Bold,textcomp}{ts1}{TS1}{fca}{b}{n}{<->\string\cantarell@scale}
\installfont{ts1-Cantarell-Bold-Slanted}{ts1-Cantarell-Bold-Slanted,fixtextcomp-Cantarell-Bold-Slanted,textcomp}{ts1}{TS1}{fca}{b}{sl}{<->\string\cantarell@scale}
\installfontas{ts1-Cantarell-Bold}{TS1}{fca}{b}{sc}{<->\string\cantarell@scale}
\installfontas{ts1-Cantarell-Bold-Slanted}{TS1}{fca}{b}{scsl}{<->\string\cantarell@scale}
\endinstallfonts


\endrecordtransforms
\bye