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
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{coelacanth}
[2020/04/13 (Bob Tennent and autoinst) Style file for Coelacanth fonts.]
\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
\newif\ifcoelacanth@otf
\ifxetex
\coelacanth@otftrue
\else\ifluatex
\coelacanth@otftrue
\else % [pdf]LaTeX
\coelacanth@otffalse
\fi\fi
\newif\ifcoelacanth@lining \coelacanth@liningfalse
\newif\ifcoelacanth@tabular \coelacanth@tabularfalse
\newif\ifcoelacanth@light \coelacanth@lightfalse
\newif\ifcoelacanth@extralight \coelacanth@extralightfalse
\newif\ifcoelacanth@semibold \coelacanth@semiboldfalse
\newif\ifcoelacanth@heavy \coelacanth@heavyfalse
\newcommand*{\Coelacanth@scale}{1}
\RequirePackage{xkeyval}
\DeclareOptionX{scaled}{\renewcommand*{\Coelacanth@scale}{#1}}
\DeclareOptionX{scale}{\renewcommand*{\Coelacanth@scale}{#1}}
\DeclareOptionX{type1}{\coelacanth@otffalse}
\DeclareOptionX{lining}{\coelacanth@liningtrue}
\DeclareOptionX{nf}{\coelacanth@liningtrue}
\DeclareOptionX{lf}{\coelacanth@liningtrue}
\DeclareOptionX{oldstyle}{\coelacanth@liningfalse}
\DeclareOptionX{osf}{\coelacanth@liningfalse}
\DeclareOptionX{tabular}{\coelacanth@tabulartrue}
\DeclareOptionX{t}{\coelacanth@tabulartrue}
\DeclareOptionX{proportional}{\coelacanth@tabularfalse}
\DeclareOptionX{p}{\coelacanth@tabularfalse}
\DeclareOptionX{l}{\coelacanth@lighttrue}
\DeclareOptionX{el}{\coelacanth@extralighttrue}
\DeclareOptionX{sb}{\coelacanth@semiboldtrue}
\DeclareOptionX{h}{\coelacanth@heavytrue}
\ExecuteOptionsX{oldstyle,proportional}
\ProcessOptionsX\relax
\ifcoelacanth@otf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes,mweights}
\fi
\ifcoelacanth@otf
\ifcoelacanth@lining
\def\coelacanth@figurestyle{Lining}
\else
\def\coelacanth@figurestyle{OldStyle}
\fi
\ifcoelacanth@tabular
\def\coelacanth@figurealign{Monospaced}
\else
\def\coelacanth@figurealign{Proportional}
\fi
\else % type1
\ifcoelacanth@lining
\def\coelacanth@figurestyle{LF}
\else
\def\coelacanth@figurestyle{OsF}
\fi
\ifcoelacanth@tabular
\def\coelacanth@figurealign{T}
\else
\def\coelacanth@figurealign{}
\fi
\fi
\ifcoelacanth@otf
\ifcoelacanth@light
\def\coelacanth@regularstyle{Lt}
\else\ifcoelacanth@extralight
\def\coelacanth@regularstyle{ExtraLt}
\else
\def\coelacanth@regularstyle{}
\fi\fi
\else % type1
\def\mdseries@rm{m}
\ifcoelacanth@light
\def\mdseries@rm{l}
\else\ifcoelacanth@extralight
\def\mdseries@rm{el}
\fi\fi
\fi
\ifcoelacanth@otf
\ifcoelacanth@semibold
\def\coelacanth@boldstyle{Semibd}
\else\ifcoelacanth@heavy
\def\coelacanth@boldstyle{Heavy}
\else
\def\coelacanth@boldstyle{Bold}
\fi\fi
\else % type1
\def\bfseries@rm{b}
\ifcoelacanth@semibold
\def\bfseries@rm{sb}
\else\ifcoelacanth@heavy
\def\bfseries@rm{eb}
\fi\fi
\fi
\ifcoelacanth@otf
\RequirePackage{fontspec}
\else
\RequirePackage{fontenc,fontaxes}
\fi
\ifcoelacanth@otf
\ifxetex\XeTeXtracingfonts=1\fi
\defaultfontfeatures{
Ligatures = TeX ,
Scale = \Coelacanth@scale ,
SmallCapsFeatures={\ifluatex Renderer=Basic\fi},
Extension = .otf }
\setmainfont
[ Numbers = {\coelacanth@figurealign,\coelacanth@figurestyle},
UprightFont = *\coelacanth@regularstyle ,
ItalicFont = *Italic ,
BoldFont = *\coelacanth@boldstyle ,
BoldItalicFont = *Italic ,
]
{Coelacanth}
\newfontfamily\coelacanth
[ Numbers = {\coelacanth@figurealign,\coelacanth@figurestyle},
UprightFont = *\coelacanth@regularstyle ,
ItalicFont = *Italic ,
BoldFont = *\coelacanth@boldstyle ,
BoldItalicFont = *Italic ,
]
{Coelacanth}
\DeclareTextFontCommand{\oldstylenums}{\addfontfeatures{Numbers=OldStyle}}
\DeclareTextFontCommand{\liningnums}{\addfontfeatures{Numbers=Lining}}
\else % type1
\def\coelacanth@family{Coelacanth-\coelacanth@figurealign\coelacanth@figurestyle}
\renewcommand*\rmdefault{\coelacanth@family}
\newcommand*\coelacanth{\fontfamily{\coelacanth@family}\selectfont}
\DeclareTextFontCommand{\oldstylenums}{\fontfamily{Coelacanth-\coelacanth@figurealign OsF}\selectfont}
\DeclareTextFontCommand{\liningnums}{\fontfamily{Coelacanth-\coelacanth@figurealign LF}\selectfont}
\fi
\ifcoelacanth@otf
\DeclareTextFontCommand{\tabularnums}{\addfontfeatures{Numbers=Tabular}}
\DeclareTextFontCommand{\proportionalnums}{\addfontfeatures{Numbers=Proportional}}
\else % type1
\DeclareTextFontCommand{\tabularnums}{\fontfamily{Coelacanth-T\coelacanth@figurestyle}\selectfont}
\DeclareTextFontCommand{\proportionalnums}{\fontfamily{Coelacanth-\coelacanth@figurestyle}\selectfont}
\fi
\ifcoelacanth@otf
\defaultfontfeatures{}
\fi
\endinput
|