Debian Codegraph @

texmf-dist/source/fonts/bookhands/rotunda.dtx

raw
1 % \iffalse meta-comment
2 %
3 % rotunda.dtx
4 % Copyright 1999 Peter R. Wilson
5 %
6 % This program is provided under the terms of the
7 % LaTeX Project Public License distributed from CTAN
8 % archives in directory macros/latex/base/lppl.txt.
9 %
10 % Author: Peter Wilson (CUA) (now at: [email protected])
11 %
12 % If you do not have the docmfp package (available from CTAN in
13 % tex-archive/macros/latex/contrib/supported), comment out the
14 % \usepackage{docmfp} line below and uncomment the line following it.
15 %
16 %<*driver>
17 \documentclass{ltxdoc}
18 \usepackage{docmfp}
19 %%%%%% \providecommand{\DescribeVariable}[1]{} \newenvironment{routine}[1]{}{}
20 \EnableCrossrefs
21 \CodelineIndex
22 %% comment out next line to show code
23 \OnlyDescription
24 \setcounter{StandardModuleDepth}{1}
25 \begin{document}
26 \DocInput{rotunda.dtx}
27 \end{document}
28 %</driver>
29 %
30 % \fi
31 %
32 % \CheckSum{134}
33 %
34 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
35 % \DoNotIndex{\@centercr,\@cite}
36 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
37 % \DoNotIndex{\@input,\@ixpt,\@m}
38 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
39 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
40 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
41 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
42 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
43 % \DoNotIndex{\advance,\Alph,\alph}
44 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
45 % \DoNotIndex{\bullet}
46 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
47 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
48 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
49 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
50 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
51 % \DoNotIndex{\fbox}
52 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
53 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
54 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
55 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
56 % \DoNotIndex{\input}
57 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
58 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
59 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
60 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
61 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
62 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
63 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
64 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
65 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
66 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
67 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
68 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
69 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
70 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
71 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
72 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
73 % \DoNotIndex{\wd,\xiipt,\year,\z@}
74 %
75 % \changes{v1.0}{2002/12/30}{First public release}
76 %
77 % \def\fileversion{v1.0}
78 % \def\filedate{2002/12/30}
79 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
80 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
81 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
82 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
83 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
84 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
85 % \newcommand*{\AD}{\textsc{ad}}
86 % \newcommand*{\thisfont}{Rotunda}
87 %
88 % \title{The \Lpack{Rotunda} fonts\thanks{This
89 % file has version number \fileversion, last revised
90 % \filedate.}}
91 %
92 % \author{%
93 % Peter Wilson\\
94 % Catholic University of America \\
95 % Now at \texttt{[email protected]}
96 % }
97 % \date{\filedate}
98 % \maketitle
99 % \begin{abstract}
100 % The \Lpack{rotunda} and \Lpack{allrtnd} packages provide a set of
101 % Metafont \thisfont{} book-hands
102 % as used
103 % for manuscripts in the 13th to 15th centuries. This is one in a series
104 % of manuscript fonts.
105 % \end{abstract}
106 % \tableofcontents
107 % \listoftables
108 %
109 %
110 %
111 %
112 % \section{Introduction}
113 %
114 % The \Lpack{rotunda} and \Lpack{allrtnd} packages provide a Metafont~\cite{METAFONT} version
115 % of the \thisfont{} manuscript book-hand that was in use between about the
116 % eleventh and twelfth centuries~\AD. It is part of a project to provide fonts
117 % covering the major manuscript hands between the first century~\AD{} and
118 % the invention of printing. The principal resources used in this project
119 % are listed in the Bibliography.
120 %
121 % This manual is typeset according to the conventions of the
122 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
123 % extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
124 % The \Lpack{docmfp} package is used for documenting the Metafont portions
125 % of the distribution~\cite{DOCMFP}.
126 %
127 % Section~\ref{sec:usc} describes the usage of the package.
128 % Commented code for the fonts is in Sections~\ref{sec:mf} and~\ref{sec:fd}
129 % and source code for the package is in Section~\ref{sec:code}.
130 %
131 % \subsection{Manuscript book-hands}
132 %
133 % Before the invention of printing all books were written by hand. The book-hands
134 % used by the scribes and copyists for the manuscripts changed as time
135 % went on. Table~\ref{tab:1} lists some of the common book-hands which were used
136 % between the 1st and 15th centuries. The later book-hands formed the basis of the
137 % fonts used by the early printers, which in turn form the basis of the printing
138 % fonts in use today.
139 %
140 % The manuscript book-hands were written with a broad nibbed reed or quill
141 % pen. Among the distinguishing characteristics of a hand, apart from the
142 % actual shape of the letters, are the angle of the pen (which controls the
143 % variation between thick and thin strokes) and the height of a letter compared
144 % to the width of the nib. The lower the ratio of the letter height to nib
145 % width, the more condensed is the script. The scripts also varied in their
146 % typical height.
147 %
148 % Table~\ref{tab:1} gives an `average' x-height for each
149 % script, which I obtained by measuring a sample of photographs of
150 % manuscripts written in the various hands. About a dozen examples
151 % of each book-hand were measured. This figure should not be taken too
152 % seriously.
153 %
154 % There was not a sharp division between the use of one hand and another.
155 % Many manuscripts exhibit a variety of hands in the same document. For example,
156 % the scribe writing in an Uncial hand may have used Roman Rustic letters
157 % for capitals. Usually the same pen was used for the two different scripts.
158 %
159 % Generally speaking, as a hand got older it became more embelished, and
160 % therefore took longer to write. As this happened a new hand would appear that
161 % was faster, and which would eventually make the earlier one obsolete.
162 %
163 % Many of the book-hands were single-cased; that is, they did not have an
164 % upper- and lower-case as we do nowadays in Western scripts. On the other
165 % hand, a script might be majuscule or minuscule. A \textit{majuscule} script
166 % is one, like our upper-case, where the letters are drawn between two lines
167 % and are of a uniform height with no ascenders or descenders.
168 % A \textit{minuscule} script, like our lower-case, is drawn between four lines
169 % and has ascenders and descenders.
170 %
171 % \begin{table}
172 % \centering
173 % \caption{The main manuscript book-hands} \label{tab:1}
174 % \begin{tabular}{lccccc} \hline
175 % Name & Century & x-height & Height & Pen & Normalised \\
176 % & & (mm) & (nib widths) & angle & height \\ \hline
177 % Roman Rustic & 1--6 & 5.7 & 4--6 & 45 & 1.90 \\
178 % Uncial & 3--6 & 4.1 & 4--5 & 30 & 1.37 \\
179 % Half Uncial & 3--9 & 3.2 & 3--6 & 20--30 & 1.07 \\
180 % Artificial Uncial & 6--10 & 4.2 & 3--6 & 10 & 1.40 \\
181 % Insular majuscule & 6--9 & 4.2 & 5 & 0--20 & 1.40 \\
182 % Insular minuscule & 6 onward & 4.1 & 5--6 & 45--70 & 1.37 \\
183 % Carolingian minuscule & 8--12 & 3.0 & 3--5 & 45 & 1.00 \\
184 % Early Gothic & 11--12 & 3.8 & 4--6 & 20--45 & 1.27 \\
185 % Gothic Textura & 13--15 & 3.9 & 3--5 & 30--45 & 1.30 \\
186 % Gothic Prescius & 13 onward & 3.3 & 4--5 & 45 & 1.10 \\
187 % Rotunda & 13--15 & 3.2 & 4--6 & 30 & 1.07 \\
188 % Humanist minuscule & 14 onward & 3.0 & 4--5 & 30--40 & 1.00 \\ \hline
189 % \end{tabular}
190 % \end{table}
191 %
192 % During the period under consideration arabic numerals were effectively
193 % not used. At the beginning they were unknown and even though some knew
194 % of them towards the end, the glyphs used for them are not recognisable ---
195 % to me they look somewhat like cryllic letters --- and each locality
196 % and time had its own highly individualistic rendering. The general rule
197 % when using one of these book-hands is to write all numbers using
198 % roman numerals.
199 %
200 % The Roman alphabet consisted of 23 capital letters --- the J, U and W
201 % were absent. The book-hands initially used both a `u' and a `v' interchangeably
202 % but by the 10th century the practice had become to use the `v' before a vowel
203 % and the `u' otherwise. The letter corresponding to the W sound appeared
204 % in England around the 7th century in
205 % the form of the runic \textit{wen} character and by about the 11th century
206 % the `w' chacter was generally used. The `J' is the newest letter of all, not
207 % appearing until about the mid 16th century.
208 %
209 % In the first century punctuation was virtually unknown, and typically
210 % would not even be any additional space between individual words, never
211 % mind denoting ends of sentences. Sometimes a dot at mid-height would be
212 % used as a word seperator, or to mark off the end of a paragraph. Effectively
213 % a text was a continuous stream of letters. By the time that printing was
214 % invented, though, all of our modern punctuation marks were being used.
215 %
216 % Among all these manuscript hands, the Carolingian minuscule is the
217 % most important as our modern fonts are based on its letter shapes, and it is
218 % also at this point in time where the division occured between the black letter
219 % scripts as used even today in Germany, and the lighter fonts used elesewhere.
220 % The Rotunda and Humanist minuscule hands were developed in Italy and were
221 % essentially a rediscovery of the Carolingian minusucle. Guthenberg took the
222 % Gothic scripts as the model for his types. Later printers,
223 % such as Nicholas Jenson of Venice,
224 % took the Humanist scripts as their models.
225 %
226 %
227 % \subsection{The \thisfont{} script}
228 %
229 % The Italians developed their own version of the Gothic hands which
230 % was more open than the Textura forms. Their script became to be called
231 % Rotunda and was in use in Italy until the Humanist hand came along.
232 %
233 % Ligatures disappeared, except of course the ampersand. The script
234 % was basically a miniscule but when capital letters were required each scribe
235 % seemed to do his own thing --- letters based on uncial, square capitals, or
236 % Carolingian forms might be used.
237 %
238 % \section{The \Lpack{rotunda} and \Lpack{allrtnd} packages} \label{sec:usc}
239 %
240 % The \thisfont{} font family is called |rtnd|. The font is supplied in both
241 % OT1 and T1 encodings.
242 %
243 % \subsection{The \Lpack{rotunda} package}
244 %
245 % This is intended for the occasions when some short pieces of text have
246 % to be written in \thisfont{} while the majority of the document is in another
247 % font. The normal baselineskips are used.
248 %
249 % \DescribeMacro{\rtndfamily}
250 % The |\rtndfamily| declaration starts typesetting with the \thisfont{} fonts.
251 % Use of the \thisfont{} font will continue until either there is another |\...family|
252 % declaration or the current group (e.g., environment) is closed.
253 %
254 % \DescribeMacro{\textrtnd}
255 % The command |\textrtnd{|\meta{text}|}| will typeset \meta{text} using the
256 % \thisfont{} fonts.
257 %
258 % \subsection{The \Lpack{allrtnd} package}
259 %
260 %
261 % This package is for when the entire document will be typeset with the
262 % \thisfont{} font. The baselineskips are set to those appropriate to the
263 % book-hand.
264 %
265 % This is a minimalist package. Apart from declaring \thisfont{} to be the
266 % default font and setting the baselineskips appropriately, it makes no other
267 % alterations.
268 % Vertical spacing
269 % before and after section titles and before and after lists, etc., will be
270 % too small as the \LaTeX{} design assumes a font comparable in size to
271 % normal printing fonts, and the book-hand is much taller.
272 % To capture more of the flavour of the time, all numbers
273 % should be written using roman numerals.
274 % The \Lpack{romannum} package~\cite{ROMANNUM}
275 % can be used so that \LaTeX{} will typeset the numbers that it generates,
276 % like sectioning or caption numbers, using roman numerals instead of arabic
277 % digits.
278 %
279 % \DescribeMacro{\cmrfamily}
280 % \DescribeMacro{\textcmr}
281 % \DescribeMacro{\cmssfamily}
282 % \DescribeMacro{\textcmss}
283 % \DescribeMacro{\cmttfamily}
284 % \DescribeMacro{\textcmtt}
285 % The |...family| declarations start typesetting with the Computer Modern Roman
286 % (|\cmrfamily|), the Computer Modern Sans (|\cmssfamily|), and the Computer
287 % Modern Typewriter (|\cmttfamily|) font families. The |\textcm..{|\meta{text}|}|
288 % commands will typeset \meta{text} in the corresponding Computer Modern font.
289 %
290 % The \Lpack{allrtnd} package automatically loads the \Lpack{rotunda} package,
291 % so its font commands are available if necessary.
292 %
293 % \StopEventually{
294 % \bibliographystyle{alpha}
295 % \renewcommand{\refname}{Bibliography}
296 % \begin{thebibliography}{GMS94}
297 % \addcontentsline{toc}{section}{\refname}
298 %
299 % \bibitem[And69]{ANDERSON69}
300 % Donald M.~Anderson.
301 % \newblock {\em The Art of Written Forms: The Theory and Practice of Calligraphy}.
302 % \newblock Holt, Rinehart and Winston, 1969.
303 %
304 % \bibitem[Bol95]{BOLOGNA95}
305 % Giulia Bologna.
306 % \newblock {\em Illuminated Manuscripts: The Book before Gutenberg}.
307 % \newblock Crescent Books, 1995.
308 %
309 % \bibitem[Day95]{DAY95}
310 % Lewis F.~Day.
311 % \newblock {\em Alphabets Old \& New}.
312 % \newblock (3rd edition originally published by B.~T.~Batsford, 1910)
313 % \newblock Senate, 1995.
314 %
315 % \bibitem[Dro80]{DROGIN80}
316 % Marc Drogin.
317 % \newblock {\em Medieval Calligraphy: Its History and Technique}.
318 % \newblock Allenheld, Osmun \& Co., 1980.
319 %
320 % \bibitem[Dru95]{DRUCKER95}
321 % Johanna Drucker.
322 % \newblock {\em The Alphabetic Labyrinth}.
323 % \newblock Thames \& Hudson, 1995.
324 %
325 % \bibitem[Fir93]{FIRMAGE93}
326 % Richard A.~Firmage.
327 % \newblock {\em The Alphabet Abecedarium}.
328 % \newblock David R~Goodine, 1993.
329 %
330 % \bibitem[Fli98]{LETTRINE}
331 % Daniel Flipo.
332 % \newblock {\em The LETTRINE package}.
333 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
334 % \newblock 1998.
335 %
336 % \bibitem[Har95]{HARRIS95}
337 % David Harris.
338 % \newblock {\em The Art of Calligraphy}.
339 % \newblock DK Publishing, 1995.
340 %
341 % \bibitem[Jen95]{BETON}
342 % Frank Jensen.
343 % \newblock {\em The BETON package}.
344 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
345 % \newblock 1995.
346 %
347 % \bibitem[Joh71]{JOHNSTON75}
348 % Edward Johnston (ed. Heather Child).
349 % \newblock {\em Formal Penship and Other Papers}.
350 % \newblock Penthalic, 1971.
351 %
352 % \bibitem[Knu87]{CM}
353 % Donald E.~Knuth.
354 % \newblock {\em Computer Modern Typefaces}.
355 % \newblock Addison-Wesley, 1987.
356 %
357 % \bibitem[Knu92]{METAFONT}
358 % Donald E.~Knuth.
359 % \newblock {\em The METAFONTbook}.
360 % \newblock Addison-Wesley, 1992.
361 %
362 % \bibitem[GMS94]{GOOSSENS94}
363 % Michel Goossens, Frank Mittelbach, and Alexander Samarin.
364 % \newblock {\em The LaTeX Companion}.
365 % \newblock Addison-Wesley Publishing Company, 1994.
366 %
367 % \bibitem[Tho75]{THOMAS75}
368 % Alan G.~Thomas.
369 % \newblock {\em Great Books and Book Collectors}.
370 % \newblock Weidenfield and Nichoson, 1975.
371 %
372 % \bibitem[Wil99]{DOCMFP}
373 % Peter R.~Wilson.
374 % \newblock {\em The DOCMFP Package}.
375 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
376 % \newblock 1999.
377 %
378 % \bibitem[Wil99b]{ROMANNUM}
379 % Peter R.~Wilson.
380 % \newblock {\em The ROMANNUM Package}.
381 % \newblock (Available from CTAN in \texttt{macros/latex/contrib/supported}).
382 % \newblock 1999.
383 %
384 % \end{thebibliography}
385 % }
386 %
387 % \section{The Metafont code} \label{sec:mf}
388 %
389 %
390 % As previously noted, this work is part of a larger project to provide
391 % fonts covering the main manuscript book-hands. As such, one of the
392 % aims is to produce a coordinated set of fonts, especially as multiple
393 % hands might be used in a single document.
394 %
395 % Noting that the hands tend to be somewhat larger than the typical 10pt
396 % size (where the x-height is approximately 1.5mm) used for modern books,
397 % I have also designed the fonts
398 % at a larger than normal size, then applied some non-linear factors when reducing
399 % them down to a 10pt size.
400 % Further, I have used the height of the Carolingian minuscule as a
401 % normalising factor when deciding on the absolute height of any particular
402 % script. The x-height of the Carolingian font is made equal to the
403 % x-height of the Computer Modern Roman (CMR) font.
404 %
405 % Modern fonts are effectively drawn. That is, the outline of the letter is
406 % drawn carefully and the center is filled with ink. This is shown to good
407 % effect in the Metafont code for the Computer Modern fonts~\cite{CM}.
408 % In contrast, the manuscript letters were inked by single pen strokes in
409 % a calligraphic manner. I have tried to repeat this calligraphic style
410 % in the Metafont code.
411 %
412 % As much as possible I have tried to use parameter values from the
413 % Computer Modern Roman (CMR) fonts in order to reduce possible
414 % infelicities if the CM and manuscript fonts are used together. However,
415 % few of the CMR parameters are applicable to the calligraphic style.
416 %
417 %
418 % \subsection{The parameter file}
419 %
420 % We deal with the parameter files first, and start by announcing
421 % what they are for. The \thisfont{} font comes in three sizes and also as a normal
422 % and a bold font.
423 % \begin{macrocode}
424 %<*base7|base10|base17|base7b|base10b|base17b>
425 %<base7>%%% RTND7.MF Early Gothic at 7 point design size.
426 %<base10>%%% RTND10.MF Early Gothic at 10 point design size.
427 %<base17>%%% RTND17.MF Early Gothic at 17 point design size.
428 %<base7b>%%% RTNDB7.MF Early Gothic Bold at 7 point design size.
429 %<base10b>%%% RTNDB10.MF Early Gothic Bold at 10 point design size.
430 %<base17b>%%% RTNDB17.MF Early Gothic Bold at 17 point design size.
431 %
432 % \end{macrocode}
433 % Parameters from CMR are used as much as possible. We also
434 % make sure that \Lpack{cmbase} is loaded as well as plain Metafont.
435 % \begin{macrocode}
436 if unknown cmbase: input cmbase fi
437
438 %<base7>font_identifier:="RTND"; font_size 7pt#;
439 %<base10>font_identifier:="RTND"; font_size 10pt#;
440 %<base17>font_identifier:="RTND"; font_size 17.28pt#;
441 %<base7b>font_identifier:="RTNDB"; font_size 7pt#;
442 %<base10b>font_identifier:="RTNDB"; font_size 10pt#;
443 %<base17b>font_identifier:="RTNDB"; font_size 17.28pt#;
444
445 % \end{macrocode}
446 %
447 % \DescribeVariable{jutstretch}
448 % The CMR scaling for lowercase serifs wrt 17pt size.
449 % \begin{macrocode}
450 %<base7|base7b> jutstretch:=1.19;
451 %<base10|base10b> jutstretch:=1.152;
452 %<base17|base17b> jutstretch:=1.0;
453 % \end{macrocode}
454 %
455 % \DescribeVariable{stemstretch}
456 % The CMR scaling for lowercase stem widths wrt 17pt size.
457 % \begin{macrocode}
458 %<base7|base7b> stemstretch:=1.50;
459 %<base10|base10b> stemstretch:=1.31;
460 %<base17|base17b> stemstretch:=1.0;
461 % \end{macrocode}
462 %
463 % \DescribeVariable{caprat}
464 % The scaling for `capitals' wrt `lowercase'. This is pretty much a guess
465 % (the ratio for CMR10 is 1.59).
466 % \begin{macrocode}
467 caprat:=1.5; % ratio of capital height to minuscule height
468 % \end{macrocode}
469 %
470 % \DescribeVariable{cap_jutstretch}
471 % The CMR scaling for uppercase serifs wrt 17pt size.
472 % \begin{macrocode}
473 %<base7|base7b> cap_jutstretch:=1.3;
474 %<base10|base10b> cap_jutstretch:=1.2;
475 %<base17|base17b> cap_jutstretch:=1.0;
476 % \end{macrocode}
477 %
478 % \DescribeVariable{cap_stemstretch}
479 % The CMR scaling for uppercase stem width wrt 17pt size.
480 % \begin{macrocode}
481 %<base7|base7b> cap_stemstretch:=1.45;
482 %<base10|base10b> cap_stemstretch:=1.31;
483 %<base17|base17b> cap_stemstretch:=1.0;
484 % \end{macrocode}
485 %
486 % \DescribeVariable{bfudge}
487 % Letter width scaling for bold font wrt normal font.
488 % \begin{macrocode}
489 %<base7|base10|base17> bfudge:=1.0;
490 %<base7b|base10b|base17b> bfudge:=1.2;
491 % \end{macrocode}
492 %
493 % \DescribeVariable{szfudge}
494 % Width scaling wrt 17pt letter width.
495 % \begin{macrocode}
496 %<base7|base7b> szfudge:=1.18;
497 %<base10|base10b> szfudge:=1.0;
498 %<base17|base17b> szfudge:=1.0;
499 % \end{macrocode}
500 %
501 % \DescribeVariable{hstretch}
502 % Horizontal stretching factor wrt 17pt size letter width.
503 % \begin{macrocode}
504 hstretch:=szfudge*bfudge;
505 % \end{macrocode}
506 %
507 % \DescribeVariable{carol_height}
508 % The x-height of the Carolingian gothic font.
509 % \begin{macrocode}
510 %<base7|base7b> carol_height#:=108.5/36pt#;
511 %<base10|base10b> carol_height#:=155/36pt#;
512 %<base17|base17b> carol_height#:=268/36pt#;
513 % \end{macrocode}
514 %
515 % \DescribeVariable{vstretch}
516 % The height of this font wrt the Carolingian font.
517 % \begin{macrocode}
518 vstretch:=1.1;
519
520 % \end{macrocode}
521 %
522 % \DescribeVariable{x_height}
523 % The x-height of lower case letters. Scaled from the Carolingian font.
524 % \begin{macrocode}
525 x_height#:=vstretch*carol_height#;
526 % \end{macrocode}
527 %
528 % \DescribeVariable{u}
529 % The unit width. The CMR values are used.
530 % \begin{macrocode}
531 %<base7> u#:=15.5/36pt#;
532 %<base10> u#:=20/36pt#;
533 %<base17> u#:=32.5/36pt#;
534 %<base7b> u#:=17.9/36pt#;
535 %<base10b> u#:=23/36pt#;
536 %<base17b> u#:=37/36pt#;
537 % \end{macrocode}
538 %
539 % \DescribeVariable{width_adj}
540 % \DescribeVariable{serif_fit}
541 % \DescribeVariable{cap_serif_fit}
542 % \DescribeVariable{letter_fit}
543 % The majority of these parameters and values are constant.
544 % They are for fine adjustements of characters. The CM values are used.
545 % \begin{macrocode}
546 width_adj#:=0pt#; % width adjustment for certain characters
547 serif_fit#:=0pt#; % extra sidebar near lowercase serifs
548 %<base7|base7b> cap_serif_fit#:=3.5/36pt#; % extra sidebar near uppercase serifs
549 %<base10|base10b> cap_serif_fit#:=5/36pt#; % extra sidebar near uppercase serifs
550 %<base17|base17b> cap_serif_fit#:=8/36pt#; % extra sidebar near uppercase serifs
551 %<base7|base7b> letter_fit#:=0pt#; % extra space added to all sidebars
552 %<base10|base10b> letter_fit#:=0pt#; % extra space added to all sidebars
553 %<base17|base17b> letter_fit#:=-0.1pt#; % extra space added to all sidebars
554 % \end{macrocode}
555 %
556 % \DescribeVariable{sb}
557 % A length used for adjusting the side bearings of characters.
558 % This is normally |1/2u| but needs to be half that for this
559 % font, like the Gothics.
560 % \begin{macrocode}
561 %<base7|base7b> sb#:=1/4u#; % unit for side bearings
562 %<base10|base10b> sb#:=1/4u#; % unit for side bearings
563 %<base17|base17b> sb#:=1/4u#; % unit for side bearings
564
565 % \end{macrocode}
566 %
567 % \DescribeVariable{cap_sb}
568 % A length used for adjusting the side bearings of uppercase characters.
569 % \begin{macrocode}
570 %<base7|base7b> cap_sb#:=2sb#; % unit for uppercase side bearings
571 %<base10|base10b> cap_sb#:=2sb#; % unit for uppercase side bearings
572 %<base17|base17b> cap_sb#:=2sb#; % unit for uppercase side bearings
573
574 % \end{macrocode}
575 %
576 % \DescribeVariable{cap_height}
577 % The height of capital letters.
578 % \begin{macrocode}
579 %<base7|base7b> cap_height#:=172.2/36pt#; % height of caps
580 %<base10|base10b> cap_height#:=246/36pt#; % height of caps
581 %<base17|base17b> cap_height#:=425/36pt#; % height of caps
582 % \end{macrocode}
583 %
584 % \DescribeVariable{thickfudge}
585 % The reciprocal of the font height in nib widths. Normal font height
586 % is 6 nib widths and the bold font height is 5 nib widths.
587 % \begin{macrocode}
588 %<base7|base10|base17> thickfudge:=1/6;
589 %<base7b|base10b|base17b> thickfudge:=1/5;
590 % \end{macrocode}
591 %
592 % \DescribeVariable{thinfudge}
593 % The nib sharpness.
594 % \begin{macrocode}
595 thinfudge:=1/6;
596 % \end{macrocode}
597 %
598 % \DescribeVariable{thick}
599 % The maximum nib width.
600 % That is, the width of the thickest line that can be penned.
601 % \begin{macrocode}
602 thick#:=stemstretch*thickfudge*x_height#; % max pen breadth
603 % \end{macrocode}
604 %
605 % \DescribeVariable{thin}
606 % The nib thinness.
607 % That is, the width of the thinnest line that can be penned.
608 % \begin{macrocode}
609 thin#:=thinfudge*thick#;
610 % \end{macrocode}
611 %
612 % \DescribeVariable{pangle}
613 % The pen angle (in degrees).
614 % \begin{macrocode}
615 pangle:=35; % pen angle
616 % \end{macrocode}
617 %
618 % \DescribeVariable{ascratio}
619 % The height of lower case ascenders wrt |x_height|.
620 % \begin{macrocode}
621 ascratio:=6/4;
622 % \end{macrocode}
623 %
624 % \DescribeVariable{asc_height}
625 % The height of lower case ascenders.
626 % \begin{macrocode}
627 asc_height#:=ascratio*x_height#;
628 % \end{macrocode}
629 %
630 % \DescribeVariable{descratio}
631 % The depth of lower case descenders wrt |x_height|.
632 % \begin{macrocode}
633 descratio:=2/4;
634 % \end{macrocode}
635 %
636 % \DescribeVariable{desc_depth}
637 % The depth of lower case descenders.
638 % \begin{macrocode}
639 desc_depth#:=descratio*x_height#;
640 % \end{macrocode}
641 %
642 % \DescribeVariable{fig_height}
643 % The height of numerals. Make these midway between normal and capital
644 % letters.
645 % \begin{macrocode}
646 fig_height#:=(0.5[1,caprat])*x_height#;
647 % \end{macrocode}
648 %
649 % \DescribeVariable{fig_width}
650 % The width of numerals. All numerals are the same width (roughly, an `o').
651 % \begin{macrocode}
652 fig_width#:=hstretch*(x_height#);
653 % \end{macrocode}
654 %
655 % \DescribeVariable{body_height}
656 % The height of the tallest character.
657 % \begin{macrocode}
658 body_height#:=caprat*asc_height#;
659 % \end{macrocode}
660 %
661 % \DescribeVariable{body_depth}
662 % The depth of the lowest character.
663 % \begin{macrocode}
664 body_depth#:=caprat*desc_depth#;
665 % \end{macrocode}
666 %
667 % \DescribeVariable{half_height}
668 % Half the normal letter height.
669 % \begin{macrocode}
670 half_height#:=1/2x_height#; % half the height of x height letters
671
672 % \end{macrocode}
673 %
674 % \DescribeVariable{side}
675 % We might be using a square for the character design.
676 % \begin{macrocode}
677 side#:=x_height#;
678 % \end{macrocode}
679 %
680 % \DescribeVariable{rule_thickness}
681 % Thickness of rules (in math symbols). The CMR values are used.
682 % \begin{macrocode}
683 %<base7|base7b> rule_thickness#:=.34pt#;
684 %<base10|base10b> rule_thickness#:=.4pt#;
685 %<base17|base17b> rule_thickness#:=.6pt#;
686
687 % \end{macrocode}
688 %
689 % \DescribeVariable{jutfudge}
690 % Controls the protrusion of serifs.
691 % \begin{macrocode}
692 %%%jutfudge:= 3/4;
693 jutfudge:= 1/2;
694 % \end{macrocode}
695 %
696 % \DescribeVariable{jut}
697 % The lowercase serif protrusion.
698 % \begin{macrocode}
699 jut#:=jutstretch*jutfudge*thick#;
700 % \end{macrocode}
701 %
702 % \DescribeVariable{srad}
703 % |srad| with |0 < srad < 1| controls the serif radius.
704 % \begin{macrocode}
705 srad:=0.8; % was 0.5
706 % \end{macrocode}
707 %
708 % \DescribeVariable{trijut}
709 % The lowercase triangular serif protrusion.
710 % \begin{macrocode}
711 trijut#:=0.75jutstretch*thick#;
712 % \end{macrocode}
713 %
714 % \DescribeVariable{clubjutfudge}
715 % The fractional protusion of a club serif.
716 % \begin{macrocode}
717 clubjutfudge:=1/2;
718 % \end{macrocode}
719 %
720 % \DescribeVariable{clubjut}
721 % The lowercase club serif protrusion.
722 % \begin{macrocode}
723 clubjut#:=jutstretch*clubjutfudge*thick#;
724 % \end{macrocode}
725 %
726 % \DescribeVariable{o}
727 % Amount of overshoot for curves (as in an `o'). Use CMR values.
728 % \begin{macrocode}
729 %<base7|base7b> o#:=5/36pt#;
730 %<base10|base10b> o#:=8/36pt#;
731 %<base17|base17b> o#:=10/36pt#;
732
733 % \end{macrocode}
734 %
735 % \DescribeVariable{slant}
736 % |slant| is the amount the font slopes to the right. \\
737 % 5 degrees = 9/100; 10 degrees = 11/50.
738 % \begin{macrocode}
739 slant:=0; % tilt ratio $(\Delta x/\Delta y)$
740 %%%%%%slant:= sind 10/cosd 10; %% 10 degree slant
741
742 % \end{macrocode}
743 %
744 % \DescribeVariable{monospace}
745 % We are generating a variable-width font.
746 % \begin{macrocode}
747 monospace:=false; % should all characters have the same width?
748
749 % \end{macrocode}
750 %
751 % \DescribeVariable{dot_size}
752 % The size of (punctuation) dots.
753 % \begin{macrocode}
754 dot_size#:=5thin#; % size of dots
755 % \end{macrocode}
756 %
757 % \DescribeVariable{comma_width}
758 % The horizontal width of a comma.
759 % \begin{macrocode}
760 comma_width#:=5/4dot_size#;
761
762 % \end{macrocode}
763 %
764 % Finally, call the driver file for the font.
765 % \begin{macrocode}
766 generate rtndtitle %% switch to the driver file
767
768 % \end{macrocode}
769 %
770 % The end of this code section.
771 % \begin{macrocode}
772 %</base7|base10|base17|base7b|base10b|base17b>
773 % \end{macrocode}
774 %
775 %
776 % \subsection{The driver file}
777 %
778 % The driver file sets up the font parameters and also contains
779 % the macros used in the definition of the characters.
780 %
781 % \begin{macrocode}
782 %<*mfd>
783 % This is RTNDTITLE.MF for the Early Gothic font.
784 % This makes a short font.
785 % This file also contains special macros universally needed in the
786 % font but either not in the cmbase.mf file or modifications of these.
787 %
788 % \end{macrocode}
789 %
790 % \begin{routine}{makebox}
791 % This is a new version of the \Lpack{cmbase.mf} |makebox| macro.
792 % Essentially, as we are only generating a single case font, we don't
793 % need all the horizontals for the CMR characters.
794 %
795 % \begin{macrocode}
796 % A new version of cmbase.mf makebox macro
797 def makebox(text rule) =
798 for y=0,half_height,cap_height,body_height,x_height,-desc_depth,-body_depth:
799 rule((l,y)t_,(r,y)t_); endfor % horizontals
800 for x=l,r: rule((x,-body_depth)t_,(x,body_height)t_); endfor % verticals
801 for x=u*(1+floor(1/u)) step u until r-1:
802 rule((x,-body_depth)t_,(x,body_height)t_); endfor % more verticals
803 if charic<>0:
804 rule((r+charic*pt,h.o_),(r+charic*pt,.5h.o_)); fi % italic correction
805 enddef;
806
807 % \end{macrocode}
808 % \end{routine}
809 %
810 % \begin{routine}{proofpcbb}
811 % The macro |proofpcbb(S, xoff, yoff)| draws crosses at the corners of the
812 % square, and at the bottom and top midpoints, where the point |zS| is at
813 % position |(xoff,yoff)| in the square.
814 % \begin{macrocode}
815
816 % A macro to delineate a letter's bounding square in proof mode.
817 % Point z$ is at (xoff,yoff) in the bounding square.
818 def proofpcbb(suffix $)(expr xoff, yoff) =
819 if proofing > 0:
820 x$bl = x$ - xoff; y$bl = y$ - yoff; % Bottom Left Hand Corner
821 z$br = (x$bl+side, y$bl); % BRHC
822 z$tr = (x$bl+side, y$bl+side); % TRHC
823 z$tl = (x$bl, y$bl+side); % TLHC
824 z$bc = 1/2[z$bl,z$br]; z$tc = 1/2[z$tl,z$tr]; % horizontal mid points
825 pair hc, vc;
826 hc = (2u,0); vc = (0,2u);
827 pickup pensquare scaled 2;
828 for s = z$bl, z$br, z$tr, z$tl, z$bc, z$tc:
829 draw s-hc--s+hc;
830 draw s-vc--s+vc;
831 endfor
832 fi
833 enddef;
834
835 % \end{macrocode}
836 % \end{routine}
837 %
838 %
839 %
840 % \begin{routine}{rotunda_font_setup}
841 % This macro contains the set up for the \thisfont{} fonts.
842 % \begin{macrocode}
843
844 def rotunda_font_setup= % contains special stuff for rotunda fonts
845 define_pixels(side,half_height,carol_height,comma_width);
846 define_pixels(u,dot_size,letter_size,cap_height,width_adj,serif_fit,
847 cap_serif_fit,jut,clubjut,cap_jut,trijut);
848 define_pixels(fig_width);
849 define_whole_pixels(letter_fit,sb,cap_sb);
850 define_whole_vertical_pixels(body_height,asc_height,cap_height,x_height,
851 desc_depth,body_depth,fig_height);
852 define_corrected_pixels(o);
853 define_blacker_pixels(thick,thin);
854 let adjust_fit = normal_adjust_fit;
855 % \end{macrocode}
856 % \DescribeVariable{stylus}
857 % The pen for drawing the thinnest lines is |stylus|.
858 % \begin{macrocode}
859 pickup pencircle scaled thin;
860 stylus:=savepen;
861 % \end{macrocode}
862 % \DescribeVariable{thickstylus}
863 % The pen for drawing lines a bit thicker than the thinnest is |thickstylus|.
864 % \begin{macrocode}
865 pickup pencircle scaled (1.5thin);
866 thickstylus:=savepen;
867 % \end{macrocode}
868 % \DescribeVariable{quill}
869 % The normal calligraphic pen is |quill|.
870 % \begin{macrocode}
871 pickup pencircle xscaled thick yscaled thin rotated pangle;
872 quill:=savepen;
873
874 % \end{macrocode}
875 %
876 % \DescribeVariable{threequarterquill}
877 % A pen with 3/4 of the width as quill (but with the same thinness).
878 % \begin{macrocode}
879 pickup pencircle xscaled 3/4thick yscaled thin rotated pangle;
880 threequarterquill := savepen;
881
882 % \end{macrocode}
883 %
884 % \DescribeVariable{halfquill}
885 % A pen with 1/2 of the width as quill (but with the same thinness).
886 % \begin{macrocode}
887 pickup pencircle xscaled 1/2thick yscaled thin rotated pangle;
888 halfquill := savepen;
889
890 % \end{macrocode}
891 %
892 % \DescribeVariable{quarterquill}
893 % A pen with 1/4 of the width as quill (but with the same thinness).
894 % \begin{macrocode}
895 pickup pencircle xscaled 1/4thick yscaled thin rotated pangle;
896 quarterquill := savepen;
897
898 % \end{macrocode}
899 %
900 %
901 % \begin{macrocode}
902 numeric pcshiftx#; % x value of LHS of box wrt origin of char box
903 define_pixels(pcshiftx);
904 numeric sqxside#; % x size of the square
905 numeric sqyside#; % y size of the square
906 define_pixels(sqxside,sqyside);
907
908 enddef; % end of rotunda_font_setup
909
910 % \end{macrocode}
911 % \end{routine}
912 %
913 %
914 % \DescribeVariable{ductus}
915 % A boolean to control drawing the ductus (TRUE) or the full letter (FALSE).
916 % \begin{macrocode}
917 boolean ductus;
918 ductus:=false;
919 % \end{macrocode}
920 %
921 % \DescribeVariable{qhor}
922 % \DescribeVariable{qvert}
923 % The cosine and sine of the pen angle.
924 % \begin{macrocode}
925 numeric qhor, qvert;
926 qhor:=cosd(pangle); qvert:=sind(pangle);
927 % \end{macrocode}
928 %
929 % \DescribeVariable{pdir}
930 % The vector corresponding to the pen angle.
931 % \begin{macrocode}
932 pair pdir; pdir=dir(pangle);
933 % \end{macrocode}
934 %
935 % \DescribeVariable{ppdir}
936 % The vector that is perpendicular (anticlockwise) to the pen angle.
937 % \begin{macrocode}
938 pair ppdir; ppdir=dir(pangle+90);
939 % \end{macrocode}
940 %
941 % \begin{routine}{draw_serif}
942 % A macro to draw a serif. |draw_serif(1,2,f)| uses the current pen to
943 % draw a serif of extent |jut| at |z1| to the left of the line from |z2|
944 % to |z1|. The
945 % radius is controlled by |f|, where $0<f<1$. The `stem' from |z1| to |z2|
946 % starts at the point |z1a|.
947 % \begin{macrocode}
948
949 def draw_serif(suffix $, $$)(expr fr)=
950 numeric beta, ajut, bjut;
951 % \end{macrocode}
952 % |fr| and |beta| control the serif radius.
953 % \begin{macrocode}
954 beta=1-fr;
955 ajut=fr*jut; bjut=beta*jut;
956 % \end{macrocode}
957 % The points |$c|, |$b| and |$a| define the serif. For a top (bottom) serif
958 % the leftmost (rightmost) point is
959 % |$c| and |$a| is on the stem. |$a| is moved from |$| towards |$$| by the
960 % distance |ajut|, and the other points are calculated from this. If the stem
961 % is not vertical, then we have to rotate |$b| to match.
962 % \begin{macrocode}
963 pair vec[]; vec1=unitvector(z$$-z$);
964 vec2=ajut*vec1;
965 z$a=z$ shifted vec2;
966 z$b=z$a rotatedaround (z$,-90);
967 boolean top_serif;
968 if y$>y$$:
969 top_serif := true;
970 z$c=z$b shifted (-bjut*pdir);
971 else:
972 top_serif:=false;
973 z$c=z$b shifted (bjut*pdir);
974 fi
975 % \end{macrocode}
976 % Draw the parts, and finish off.
977 % \begin{macrocode}
978 if top_serif:
979 draw z$c--z$b{pdir}..{z$$-z$}z$a; % the serif
980 else:
981 draw z$c--z$b{-pdir}..{z$$-z$}z$a;
982 fi
983 labels($a,$b,$c);
984 enddef; % end of draw_serif
985
986 % \end{macrocode}
987 % \end{routine}
988 %
989 % \begin{routine}{draw_roundserif}
990 % The |draw_serif| routine can leave a bump at the end of the stem.
991 % The |draw_roundserif| routine, which takes the same arguments,
992 % is meant to eliminate the bump.
993 % \begin{macrocode}
994
995 def draw_roundserif(suffix $, $$)(expr fr)=
996 draw_serif($, $$, fr);
997 undraw z$--z$a;
998 enddef; % end of draw_roundserif
999
1000 % \end{macrocode}
1001 % \end{routine}
1002 %
1003 %
1004 % \begin{routine}{draw_flatserif}
1005 % A macro to draw a serif. |draw_serif(1,2,f)| uses the current pen to
1006 % draw a serif of extent |jut| at |z1| to the left of the line from |z2|
1007 % to |z1|. The
1008 % radius is controlled by |f|, where $0<f<1$. The `stem' from |z1| to |z2|
1009 % starts at the point |z1a|. This produces a serif like |draw_serif| except
1010 % that one side of the seerif is flat.
1011 % \begin{macrocode}
1012
1013 def draw_flatserif(suffix $, $$)(expr fr)=
1014 numeric beta, ajut, bjut;
1015 % \end{macrocode}
1016 % |fr| and |beta| control the serif radius.
1017 % \begin{macrocode}
1018 beta=1-fr;
1019 ajut=fr*jut; bjut=beta*jut;
1020 % \end{macrocode}
1021 % The points |$c|, |$b| and |$a| define the serif. For a top (bottom) serif
1022 % the leftmost (rightmost) point is
1023 % |$c| and |$a| is on the stem. |$a| is moved from |$| towards |$$| by the
1024 % distance |ajut|, and the other points are calculated from this. If the stem
1025 % is not vertical, then we have to rotate |$b| to match.
1026 % \begin{macrocode}
1027 pair vec[]; vec1=unitvector(z$$-z$);
1028 vec2=ajut*vec1;
1029 z$a=z$ shifted vec2;
1030 %%% z$b=z$a rotatedaround (z$,-90);
1031 boolean top_serif;
1032 if y$>y$$:
1033 top_serif := true;
1034 z$c=z$ shifted (-jut*pdir);
1035 else:
1036 top_serif:=false;
1037 z$c=z$ shifted (jut*pdir);
1038 fi
1039 z$b = fr[z$,z$c];
1040 % \end{macrocode}
1041 % Draw the parts, and finish off.
1042 % \begin{macrocode}
1043 draw z$a--z$;
1044 if top_serif:
1045 draw z$c--z$b{pdir}..{z$$-z$}z$a; % the serif
1046 else:
1047 draw z$c--z$b{-pdir}..{z$$-z$}z$a;
1048 fi
1049 labels($a,$b,$c);
1050 enddef; % end of draw_flatserif
1051
1052 % \end{macrocode}
1053 % \end{routine}
1054 %
1055 %
1056 % \begin{routine}{draw_clubserif}
1057 % A macro to draw a clubbed serif. |draw_clubserif(1,2,f)| uses the current
1058 % pen to
1059 % draw a clubbed serif of extent |clubjut| at |z1| to the left of the line
1060 % from |z2|
1061 % to |z1|. The serif matches |z1| like the flatserif does and ends at the
1062 % point |f[z1,z2]|.
1063 % \begin{macrocode}
1064
1065 def draw_clubserif(suffix $, $$)(expr fr)=
1066 numeric beta, ajut, bjut;
1067 % \end{macrocode}
1068 % |fr| controls the length of the serif.
1069 % \begin{macrocode}
1070 %% beta=1-fr;
1071 ajut=clubjut; bjut=beta*jut;
1072 % \end{macrocode}
1073 % The points |$c|, |$b| and |$a| define the serif. For a top (bottom) serif
1074 % the leftmost (rightmost) point is
1075 % |$c| and |$a| is on the stem, |fr| between |$| and |$$|.
1076 % \begin{macrocode}
1077 pair vec[]; vec1=unitvector(z$$-z$);
1078 %% vec2=ajut*vec1;
1079 %% z$a=z$ shifted vec2;
1080 boolean top_serif;
1081 if y$>y$$:
1082 top_serif := true;
1083 z$c=z$ shifted (-clubjut*pdir);
1084 else:
1085 top_serif:=false;
1086 z$c=z$ shifted (clubjut*pdir);
1087 fi
1088 z$a = fr[z$,z$$];
1089 % \end{macrocode}
1090 % Draw the parts, and finish off.
1091 % \begin{macrocode}
1092 draw z$c..z$a{vec1};
1093 labels($a,$b,$c);
1094 enddef; % end of draw_clubserif
1095
1096 % \end{macrocode}
1097 % \end{routine}
1098 %
1099 %
1100 %
1101 % \begin{routine}{draw_triserif}
1102 % A macro to draw a triangular top left serif.
1103 % |draw_triserif(1,tj)| draws a serif at |z1| with its leftmost x
1104 % value at |x1-tj|, where it is assumed that the
1105 % top point on the stem is at |z1| and the stem was drawn with |quill|.
1106 % \begin{macrocode}
1107
1108 def draw_triserif(suffix $)(expr tj)=
1109 pen oldpen; oldpen:=currentpen;
1110 pickup quill;
1111 x$ts1'=lft x$; y$ts1'=bot y$;
1112 pickup stylus;
1113 lft x$ts1=x$ts1'; bot y$ts1=y$ts1';
1114 x$ts2=x$ts1-tj; z$ts2=whatever[z$,z$ts1];
1115 x$ts3=x$ts1; y$ts3=y$ts2-tj;
1116 pickup stylus;
1117 %% filldraw z$ts1--z$ts2--z$ts3--cycle;
1118 filldraw z$--z$ts2--z$ts3--cycle;
1119 pickup oldpen;
1120 labels($ts1,$ts2,$ts3);
1121 enddef; % end of draw_triserif
1122
1123 % \end{macrocode}
1124 % \end{routine}
1125 %
1126 % \begin{routine}{draw_istem}
1127 % A macro to draw the shape of an i. |draw_istem(1,2,f)| draws a stem whose
1128 % top is at |z1| and bottom at |z2|. It draws with the current pen and the serifs
1129 % are of extent |jut|. There is a top left and bottom right serif.
1130 % The serif radius is controlled by |f|, with $0<f<1$.
1131 % \begin{macrocode}
1132
1133 def draw_istem(suffix $, $$)(expr fr)=
1134 draw_serif($, $$, fr); % top serif
1135 draw_serif($$, $, fr); % bottom serif
1136 draw z$a--z$$a; % the stem
1137 enddef; % end of draw_istem
1138
1139 % \end{macrocode}
1140 % \end{routine}
1141 %
1142 % \begin{routine}{draw_tstem}
1143 % A macro to draw the shape of the stem of a `t'. |draw_tstem(1,2,f)| draws a
1144 % stem whose
1145 % top is at |z1| and bottom at |z2| with a right serif at |z2|. The radius
1146 % is controlled by |f|, with $0 < f < 1$.
1147 % It draws with the current pen and the serif is of extent |jut|.
1148 % NOTE: for the RTND font, just the stem is drawn --- no serif!
1149 % \begin{macrocode}
1150
1151 def draw_tstem(suffix $, $$)(expr fr)=
1152 %% draw_serif($$, $, fr); % the serif
1153 %% draw z$--z$$a; % the stem
1154 draw z$--z$$;
1155 enddef; % end of draw_tstem
1156
1157 % \end{macrocode}
1158 % \end{routine}
1159 %
1160 % \begin{routine}{draw_tlserif}
1161 % A macro to draw a top left serif. |draw_tlserif(1,2,f)| draws a serif on top
1162 % of a stem whose absolute
1163 % top is at |z1| and bottom at |z2|. It draws with the current pen and the serif
1164 % is of extent |jut|. It also draws the stem to the point |z2|. The serif
1165 % radius is controlled by |f|, with $0<f<1$.
1166 % \begin{macrocode}
1167
1168 def draw_tlserif(suffix $, $$)(expr fr)=
1169 draw_serif($, $$, fr); % the serif
1170 draw z$a--z$$; % the stem
1171 enddef; % end of draw_tlserif
1172
1173 % \end{macrocode}
1174 % \end{routine}
1175 %
1176 %
1177 % \begin{routine}{draw_flick}
1178 % A macro to draw a flick (like an eyebrow).
1179 % |draw_flick(1,rise,fall,fjut)| draws a stroke starting at |z1| rising up by
1180 % |rise| and falling down by |fall| wrt |z1|. The overall stroke distance is
1181 % |fjut| to the right of |z1|. It is drawn with the current pen.
1182 % \begin{macrocode}
1183
1184 def draw_flick(suffix $)(expr rise, fall, fjut)=
1185 % \end{macrocode}
1186 % The points |z$a| and |z$b|, together with |z$| make up three points on the
1187 % ductus.
1188 % \begin{macrocode}
1189 rt x$b = x1+fjut; top y$b=y$-fall;
1190 x$a=0.5[x$,x$b]; top y$a=y$+rise;
1191 % \end{macrocode}
1192 % Draw the part, and finish off.
1193 % \begin{macrocode}
1194 draw z$..z$a..z$b;
1195 labels($a,$b);
1196 enddef; % end of draw_flick
1197
1198 % \end{macrocode}
1199 % \end{routine}
1200 %
1201 %
1202 % \begin{routine}{draw_wave}
1203 % A macro to draw a (horizontal) stroke with a flick at each end
1204 % (down at the left and up at the right). |draw_wave(1,2,f)| uses the current
1205 % pen to draw from |z1wl| to |z1wr|, where |x1wl=x1|, |y1wl=y1-f|, and
1206 % |x1wr=x2|, |y1wr=y2+f|, with |z1| assumed to be at the left of |z2|.
1207 % \begin{macrocode}
1208
1209 def draw_wave(suffix $,$$)(expr f)=
1210 x$wl=x$; y$wl=y$-f;
1211 x$wr=x$$; y$wr=y$$+f;
1212 z$wc=0.5[z$wl,z$wr];
1213 draw z$wl{pdir}..z$wc{right}..{pdir}z$wr;
1214 labels($wl,$wc,$wr);
1215 enddef; % end of draw_wave
1216 % \end{macrocode}
1217 % \end{routine}
1218 %
1219 % \begin{routine}{draw_tail}
1220 % A macro to draw a tail at the bottom of a (vertical) stem.
1221 % |draw_tail(1,fjut)| draws a tail at the bottom of the stem which ends at |z1|.
1222 % The depth is controlled by the |desc_depth| value and the jut by |fjut|.
1223 % \begin{macrocode}
1224
1225 def draw_tail(suffix $)(expr fj)=
1226 pen oldpen; oldpen:=currentpen;
1227 pickup quill;
1228 x$tl' = lft x$; y$tl=bot y$;
1229 pickup stylus;
1230 lft x$tl=x$tl';
1231 x$tb=x$tl-fj; bot y$tb=y$tl-1/2desc_depth;
1232 filldraw z${down}..{-pdir}z$tb & z$tb{pdir}..{up}z$tl--cycle;
1233 pickup oldpen;
1234 labels($tb,$tl);
1235 enddef; % end of draw_tail
1236 % \end{macrocode}
1237 % \end{routine}
1238 %
1239 % \begin{routine}{draw_flat_head}
1240 % A macro to draw a squared off top of a vertical stroke.
1241 % |draw_flat_head(1)| draws at the top of the stem ending at |z1|.
1242 % \begin{macrocode}
1243
1244 def draw_flat_head(suffix $)=
1245 pen oldpen; oldpen:=currentpen;
1246 %% pickup quill;
1247 x$bl'' = lft x$; y$bl'' = bot y$;
1248 x$tr'' = rt x$; y$tr'' = top y$;
1249 pickup stylus;
1250 lft x$blfh = x$bl''; y$blfh = y$bl'';
1251 rt x$trfh = x$tr''; top y$trfh = y$tr'';
1252 x$tlfh = x$blfh; y$tlfh = y$trfh;
1253 filldraw z$blfh--z$tlfh--z$trfh--cycle;
1254 pickup oldpen;
1255 labels($tlfh);
1256 enddef; % end of draw_flat_head
1257 % \end{macrocode}
1258 % \end{routine}
1259 %
1260 % \begin{routine}{draw_flat_foot}
1261 % A macro to draw a squared off bottom of a vertical stroke.
1262 % |draw_flat_foot(1)| draws at the bottom of the stem ending at |z1|.
1263 % \begin{macrocode}
1264
1265 def draw_flat_foot(suffix $)=
1266 pen oldpen; oldpen:=currentpen;
1267 %% pickup quill;
1268 x$bl'' = lft x$; y$bl'' = bot y$;
1269 x$tr'' = rt x$; y$tr'' = top y$;
1270 pickup stylus;
1271 lft x$blff = x$bl''; bot y$blff = y$bl'';
1272 rt x$trff = x$tr''; y$trff = y$tr'';
1273 x$brff = x$trff; y$brff = y$blff;
1274 filldraw z$blff--z$trff--z$brff--cycle;
1275 pickup oldpen;
1276 labels($brff);
1277 enddef; % end of draw_flat_foot
1278 % \end{macrocode}
1279 % \end{routine}
1280 %
1281 % \begin{routine}{draw_triangle}
1282 % A macro to draw a downward pointing equilateral triangle.
1283 % |draw_triangle(1,sz)| draws a triangle of side length |sz| with |z1| in the middle
1284 % of the base.
1285 % \begin{macrocode}
1286
1287 def draw_triangle(suffix $)(expr sz)=
1288 pen oldpen; oldpen:=currentpen;
1289 pickup stylus;
1290 x$t1=x$-sz/2; x$t3=x$+sz/2;
1291 y$t1=y$t3=y$;
1292 x$t2=x$; y$t2=y$-0.9sz; % approx sqrt(3)/2
1293 filldraw z$t1--z$t2--z$t3--cycle;
1294 pickup oldpen;
1295 labels($t1,$t2,$t3);
1296 enddef; % end of draw_triangle
1297 % \end{macrocode}
1298 % \end{routine}
1299 %
1300 % \begin{routine}{draw_utriangle}
1301 % A macro to draw an upward pointing equilateral triangle.
1302 % |draw_utriangle(1,sz)| draws a triangle of side length |sz| with |z1| in the middle
1303 % of the base.
1304 % \begin{macrocode}
1305
1306 def draw_utriangle(suffix $)(expr sz)=
1307 pen oldpen; oldpen:=currentpen;
1308 pickup stylus;
1309 x$t1=x$-sz/2; x$t3=x$+sz/2;
1310 y$t1=y$t3=y$;
1311 x$t2=x$; y$t2=y$+0.9sz; % approx sqrt(3)/2
1312 filldraw z$t1--z$t2--z$t3--cycle;
1313 pickup oldpen;
1314 labels($t1,$t2,$t3);
1315 enddef; % end of draw_utriangle
1316 % \end{macrocode}
1317 % \end{routine}
1318 %
1319 % \begin{routine}{draw_rtriangle}
1320 % A macro to draw a downward pointing right angled triangle.
1321 % |draw_rtriangle(1,sz)| draws a triangle of side length |sz| with |z1| at the
1322 % right (where the right angle is).
1323 % \begin{macrocode}
1324
1325 def draw_rtriangle(suffix $)(expr sz)=
1326 pen oldpen; oldpen:=currentpen;
1327 pickup stylus;
1328 x$t1=x$-sz; rt x$t3=x$;
1329 y$t1=y$t3=y$;
1330 x$t2=x$t3; y$t2=y$-sz;
1331 filldraw z$t1--z$t2--z$t3--cycle;
1332 pickup oldpen;
1333 labels($t1,$t2,$t3);
1334 enddef; % end of draw_rtriangle
1335 % \end{macrocode}
1336 % \end{routine}
1337 %
1338 % \begin{routine}{draw_rutriangle}
1339 % A macro to draw an upward pointing right angled triangle.
1340 % |draw_rutriangle(1,sz)| draws a triangle of side length |sz| with |z1| at the
1341 % right (where the right angle is).
1342 % \begin{macrocode}
1343
1344 def draw_rutriangle(suffix $)(expr sz)=
1345 pen oldpen; oldpen:=currentpen;
1346 pickup stylus;
1347 x$t1=x$-sz; rt x$t3=x$;
1348 y$t1=y$t3=y$;
1349 x$t2=x$t3; y$t2=y$+sz;
1350 filldraw z$t1--z$t2--z$t3--cycle;
1351 pickup oldpen;
1352 labels($t1,$t2,$t3);
1353 enddef; % end of draw_rutriangle
1354 % \end{macrocode}
1355 % \end{routine}
1356 %
1357 % \begin{routine}{draw_fork}
1358 % A macro to draw a forked line.
1359 % |draw_fork(1,2,sz)| draws a graduated line from |z1| to |z2| with a forked
1360 % end of size |sz|.
1361 % \begin{macrocode}
1362
1363 def draw_fork(suffix $, $$)(expr sz)=
1364 pen oldpen; oldpen:=currentpen;
1365 pickup quill;
1366 x$f1'=lft x$; y$f1'=bot y$;
1367 x$f3'=rt x$; y$f3'=top y$;
1368 pickup stylus;
1369 lft x$f1=x$f1'; bot y$f1=y$f1';
1370 rt x$f3=x$f3'; y$f3-y$=2*(y$-y$f1);
1371 rt x$f2=x$$-sz; bot y$f2=y$$;
1372 rt x$f4= rt x$f5=x$$;
1373 bot y$f5=y$$-sz; top y$f4=y$$+1/2sz;
1374 filldraw z$f1--z$f2--z$f3--cycle; % the line
1375 draw z$f2{right}..z$f4; % upper fork
1376 draw z$f2{right}..z$f5; % lower fork
1377 pickup oldpen;
1378 labels($f1,$f2,$f3,$f4,$f5);
1379 enddef; % end of draw_fork
1380 % \end{macrocode}
1381 % \end{routine}
1382 %
1383 % \begin{routine}{draw_urswish}
1384 % A macro to draw a line up and to the right with an under curl at the end.
1385 % |draw_urswish(1,2)| draws from |z1| towards |z2|, which is the max upper right
1386 % of a bounding box, where the curl is.
1387 % \begin{macrocode}
1388
1389 def draw_urswish(suffix $, $$)=
1390 pen oldpen; oldpen:=currentpen;
1391 pickup quill;
1392 rt x$$s1=x$$-thick; top y$$s1=y$$;
1393 rt x$$s2=x$$;
1394 %% x$$s3=x$$-thick;
1395 lft x$$s3=x$$s1;
1396 bot y$$s3=y$$-thick; y$$s2=0.5[y$$s1,y$$s3];
1397 %% draw z$---z$$s1{right}..z$$s2{down}..{-pdir}z$$s3;
1398 draw z$..z$$s1{pdir}..z$$s2{down};
1399 labels($$s1,$$s2,$$s3);
1400 enddef; % end of draw_urswish
1401 % \end{macrocode}
1402 % \end{routine}
1403 %
1404 % \begin{routine}{bowl_stem}
1405 % Calculate where a bowl should meet a stem so that the pen is moving in the
1406 % pen direction.
1407 % |bowl_stem(1,2)| calculates the point |z1i|, where |z1| is on the bowl and
1408 % there is a vertical line at |x2|.
1409 %
1410 % \begin{macrocode}
1411
1412 def bowl_stem(suffix $, $$)=
1413 x$'=0.5[x$,x$$]; y$'=y$; % the mid-point
1414 z$''=z$' shifted (thick*pdir);
1415 x$i=x$$; z$i=whatever[z$',z$''];
1416 labels($',$i);
1417 enddef; % end of bowl_stem
1418 % \end{macrocode}
1419 % \end{routine}
1420 %
1421 % \begin{routine}{draw_clubbase}
1422 % Draw a clubbed bottom of a vertical stem for the EGOTH font.
1423 % |draw_clubbase(1, 2, st, left, right)| draws from |st[z2,z1]| to |z2|.
1424 % At |z2| the pen
1425 % is shifted |left| fraction of the pen width and |right| fraction of the
1426 % pen width, both in the direction of the pen angle. Pen draws smoothly the
1427 % path |z1|, |left|, |right|, |z1|.
1428 % \begin{macrocode}
1429
1430 % draw clubbed bottom of vertical stem for RTND font.
1431 def draw_clubbase(suffix $, $$)(expr st, lft, rt)=
1432 z$$l = z$$ shifted (lft*thick*(-pdir));
1433 z$$r = z$$ shifted (rt*thick*(pdir));
1434 z$$t = st[z$$,z$];
1435 draw z$$t{z$$-z$}..z$$l--z$$r..{z$-z$$}z$$t;
1436 labels($$t,$$l,$$r);
1437 enddef; % end of draw_clubbase
1438
1439 % \end{macrocode}
1440 % \end{routine}
1441 %
1442 % \begin{routine}{draw_pdot}
1443 % A macro to draw a period dot.
1444 % |draw_pdot(1,sz)| uses |stylus| to draw a dot centered at |z1| of overall size |sz|.
1445 % \begin{macrocode}
1446
1447 def draw_pdot(suffix $)(expr sz)=
1448 % \end{macrocode}
1449 % Draw a square rotated 45 degrees.
1450 % \begin{macrocode}
1451 z$s = z$ shifted (0.5sz*left);
1452 z$t = z$ shifted (0.5sz*up);
1453 z$u = z$s shifted (sz*right);
1454 z$v = z$t shifted (sz*down);
1455 pickup stylus;
1456 filldraw z$s--z$t--z$u--z$v--cycle;
1457 labels($s,$t,$u,$v);
1458 enddef; % end of draw_pdot
1459
1460 % \end{macrocode}
1461 % \end{routine}
1462 %
1463 % \begin{routine}{draw_pcomma}
1464 % A macro to draw a period comma.
1465 % |draw_pcomma(1,t,w)| draws a comma placed at |z1| (the top), line width is |t|
1466 % and bottom of line is |w| horizontally from |z1|. The pen is |stylus|.
1467 % \begin{macrocode}
1468
1469 def draw_pcomma(suffix $)(expr sz, ar)=
1470 % \end{macrocode}
1471 % Draw a line of at |z$| of width |sz| sloping back and down
1472 % for a total width of |ar| and deptrh of |2ar|.
1473 % \begin{macrocode}
1474 z$s = z$ shifted (0.5sz*left);
1475 z$t = z$s shifted (sz*right);
1476 x$v=x$s-ar; y$v=y$s-2ar;
1477 z$u = z$v shifted (sz*right);
1478 z$sv = (x$s, 1/3[y$s,y$v]);
1479 z$tu = (x$t, y$sv);
1480 z$uv = 1/3[z$u,z$v];
1481 z$vu = 1/3[z$v,z$u];
1482 pickup stylus;
1483 %% filldraw z$s--z$t--z$u--z$v--cycle;
1484 filldraw z$s--z$t--z$tu--z$uv--z$vu--z$v--z$sv--cycle;
1485 labels($s,$t,$u,$v);
1486 enddef; % end of draw_pcomma
1487
1488 % \end{macrocode}
1489 % \end{routine}
1490 %
1491 % \begin{routine}{draw_plq}
1492 % A macro to draw a period left quote.
1493 % |draw_pcomma(1,t,w)| draws a left quote placed at |z1| (the top), line width is |t|
1494 % and bottom of line is |w| horizontally from |z1|.
1495 % \begin{macrocode}
1496
1497 def draw_plq(suffix $)(expr sz, ar)=
1498 % \end{macrocode}
1499 % Draw a line of at |z$| of width |sz| sloping forward and down
1500 % for a total width of |ar| and depth |2ar|.
1501 % \begin{macrocode}
1502 z$s = z$ shifted (0.5sz*left);
1503 z$t = z$s shifted (sz*right);
1504 x$v=x$s+ar; y$v=y$s-2ar;
1505 z$u = z$v shifted (sz*right);
1506 z$sv = (x$s, 1/3[y$s,y$v]);
1507 z$tu = (x$t, y$sv);
1508 z$uv = 1/3[z$u,z$v];
1509 z$vu = 1/3[z$v,z$u];
1510 pickup stylus;
1511 %% filldraw z$s--z$t--z$u--z$v--cycle;
1512 filldraw z$s--z$t--z$tu--z$uv--z$vu--z$v--z$sv--cycle;
1513 labels($s,$t,$u,$v);
1514 enddef; % end of draw_plq
1515
1516 % \end{macrocode}
1517 % \end{routine}
1518 %
1519 % \begin{routine}{offsetbowl}
1520 % A macro to calculate the outer and inner paths (|obouter| and |obinner|)
1521 % for a non-centered letter `o'. |offsetbowl($, sx, sy, fx, fy)|
1522 % calculates the paths for an `o'
1523 % enclosed in a rectangle size |sx| by |sy| with its bottom lefthand corner
1524 % located at |z$|, where the center of the o is at |(fx*sx, fy*sy)| in the
1525 % bounding rectangle.
1526 %
1527 % Two construction paths, namely |obfirst| and |obsecond| are also
1528 % available. They should be identical.
1529 %
1530 % All paths have points listed in a clockwise direction, starting with
1531 % |z$nh| or |z$minl| as appropriate.
1532 %
1533 % |offsetbowl($, sx, sy, 1/2, 1/2)| gives the same results as |obowl($, sx, sy)|.
1534 % \begin{macrocode}
1535
1536 path obouter, obinner, obfirst, obsecond;
1537 def offsetbowl(suffix $)(expr sx, sy, fx, fy)=
1538 numeric inx, iny, cx, cy;
1539 pair pt[];
1540 path pth[];
1541 inx := 1/2thick*cosd(pangle); iny := 1/2thick*sind(pangle);
1542 cx := x$+fx*sx; cy := y$+fy*sy;
1543 z$obc = (cx,cy);
1544 % \end{macrocode}
1545 % Calulate points on the centre path of the pen. These are offset by |inx|
1546 % from the rectangles vertical sides and by |iny| from the horizontal sides.
1547 % If the pen is parallel to a side, offset the point by half the pen's
1548 % dimension. First do the West, East, North and South points.
1549 % \begin{macrocode}
1550 if pangle = 90:
1551 z$wt=(x$+1/2thin, cy);
1552 z$et=(x$+sx-1/2thin, cy);
1553 else:
1554 z$wt=(x$+inx, cy);
1555 z$et=(x$+sx-inx, cy);
1556 penpos$wt(thick,pangle);
1557 penpos$et(thick,pangle);
1558 fi
1559 if pangle = 0:
1560 z$nh=(cx, y$+sy-1/2thin);
1561 z$sh=(cx, y$+1/2thin);
1562 else:
1563 z$nh=(cx, y$+sy-iny);
1564 z$sh=(cx, y$+iny);
1565 penpos$nh(thick,pangle);
1566 penpos$sh(thick,pangle);
1567 fi
1568 obfirst := z$nh{right}..z$et{down}..z$sh{left}..z$wt{up}..cycle;
1569 % \end{macrocode}
1570 % Now calculate the points on the path |obfirst| where the pen will
1571 % draw the min width lines (i.e., the points where the pen will be
1572 % moving parallel to |pangle|).
1573 % \begin{macrocode}
1574 if pangle = 90:
1575 z$minl = z$wt; z$maxr = z$nh; z$minr = z$et; z$maxl = z$sh;
1576 else:
1577 if pangle = 0:
1578 z$minl = z$nh; z$maxr = z$et; z$minr = z$sh; z$maxl = z$wt;
1579 else:
1580 z$minl = directionpoint dir(pangle) of obfirst;
1581 z$minr = directionpoint -dir(pangle) of obfirst;
1582 % \end{macrocode}
1583 % The max points are roughly where the inner and outer diverge
1584 % the most. These are simple for 0 and 90 degree pens and have
1585 % been calculated above. It's not so simple for intermediate
1586 % angles. For a reasonable looking result, we pick the max
1587 % points to be halfway between the min points. This involves
1588 % calculating some angles, paths and intersections.
1589 % \begin{macrocode}
1590 pt1 := z$minr - z$minl; % direction
1591 pt2 := (- ypart pt1, xpart pt1); % perpendicular
1592 pt3 := 1/2[z$minl, z$minr];
1593 pt4 := pt3 shifted pt2;
1594 pt5 := pt3 shifted -pt2;
1595 pth1 := pt3--pt4;
1596 pth2 := pt3--pt5;
1597 z$maxr = pth1 intersectionpoint obfirst;
1598 z$maxl = pth2 intersectionpoint obfirst;
1599 \fi
1600 \fi
1601 % \end{macrocode}
1602 % Place the pen at each of these points to get the outer and inner points.
1603 % \begin{macrocode}
1604 penpos$minl(thin,pangle+90);
1605 penpos$maxr(thick,pangle);
1606 penpos$minr(thin,pangle+90);
1607 penpos$maxl(thick,pangle);
1608 % \end{macrocode}
1609 % Finally, the outer and inner paths.
1610 % \begin{macrocode}
1611 obsecond := z$minl..z$maxr..z$minr..z$maxl..cycle;
1612 z$minlo = z$minl.r; z$maxro = z$maxr.r;
1613 z$minro = z$minr.l; z$maxlo = z$maxl.l;
1614 obouter := z$minlo{dir(pangle)}...z$maxro...z$minro{-dir(pangle)}...z$maxlo...cycle;
1615 z$minli = z$minl.l; z$maxri = z$maxr.l;
1616 z$minri = z$minr.r; z$maxli = z$maxl.r;
1617 obinner := z$minli...z$maxri...z$minri...z$maxli...cycle;
1618 labels($obc, $nh, $et, $sh, $wt);
1619 labels($minl, $maxr, $minr, $maxl);
1620 labels($minlo, $maxro, $minro, $maxlo);
1621 labels($minli, $maxri, $minri, $maxli);
1622 enddef;
1623
1624 % \end{macrocode}
1625 % \end{routine}
1626 %
1627 % \begin{routine}{obowl}
1628 % A macro to calculate the outer and inner paths (|obouter| and |obinner|)
1629 % for the letter `o'. |obowl($, sx, sy)| calculates the paths for an `o'
1630 % centered and enclosed in a rectangle size |sx| by |sy| with its bottom
1631 % lefthand corner located at |z$|.
1632 % \begin{macrocode}
1633
1634 def obowl(suffix $)(expr sx, sy)=
1635 offsetbowl($, sx, sy, 1/2, 1/2);
1636 enddef;
1637
1638 % \end{macrocode}
1639 % \end{routine}
1640 %
1641 % \begin{routine}{scalarprod}
1642 % |v scalarprod w| calulates the scalar product between the
1643 % two vectors |v| and |w|.
1644 % \begin{macrocode}
1645
1646 primarydef v scalarprod w =
1647 (xpart v * ypart w - ypart v * xpart w)
1648 enddef;
1649
1650 % \end{macrocode}
1651 % \end{routine}
1652 %
1653 % \begin{routine}{tangentpoint}
1654 % |tangentpoint($, path)| calculates the point |z$tan| on the |path|
1655 % so that |z$tan--z$| is tangent to the path. It uses a binary search
1656 % to find a point on the path such that the path direction is
1657 % (anti-) parallel to the dirction from that point to the given point.
1658 % \begin{macrocode}
1659
1660 def tangentpoint(suffix $)(expr pth)=
1661 pair vecll, veclr, veclm; % "tangent" line directions
1662 numeric pl, pr, pm; % path parameter values
1663 pair vecpl, vecpr, vecpm; % path directions
1664 pair ptl, ptr, ptm; % path points
1665 numeric sl, sr, sm; % scalar products of path/line directions
1666 numeric stpsize; % size of current binary step
1667 numeric tantol; % tolerance
1668 boolean wtest; % a boolean
1669
1670 tantol := eps;
1671 % \end{macrocode}
1672 % Initialise using the left right and middle points on the path.
1673 % \begin{macrocode}
1674 pl:=0; pr:=length pth; pm:=0.5(pl+pr); stpsize:=pr-pl;
1675 ptl := point pl of pth;
1676 ptm := point pm of pth;
1677 ptr := point pr of pth;
1678 % \end{macrocode}
1679 % Now the various vectors, and make sure they are unit vectors to
1680 % have a consistent measure scale when we take the scalar products.
1681 % \begin{macrocode}
1682 vecll := unitvector (z$-ptl);
1683 veclm := unitvector (z$-ptm);
1684 veclr := unitvector (z$-ptr);
1685 vecpl := unitvector (direction pl of pth);
1686 vecpm := unitvector (direction pm of pth);
1687 vecpr := unitvector (direction pr of pth);
1688 sl := vecll scalarprod vecpl;
1689 sm := veclm scalarprod vecpm;
1690 sr := veclr scalarprod vecpr;
1691 % \end{macrocode}
1692 % We stop if any of the points is the tangent point, or if the step
1693 % size is too small, or if the signs of the left and right scalar
1694 % products are the same.
1695 % \begin{macrocode}
1696 wtest := (stpsize < tantol) or (sl*sr > 0) or
1697 (abs sl < tantol) or (abs sm < tantol) or (abs sr < tantol);
1698 if wtest:
1699 if (stpsize < tantol):
1700 z$tan=(0,0);
1701 errmessage("No tangent; path too short");
1702 else:
1703 if (sl*sr > 0):
1704 z$tan=(0,0);
1705 errmessage("No tangent; end products have the same sign");
1706 else:
1707 if (abs sl < tantol):
1708 z$tan=ptl;
1709 else:
1710 if (abs sm < tantol):
1711 z$tan=ptm;
1712 else:
1713 z$tan=ptr;
1714 fi
1715 fi
1716 fi
1717 fi
1718 else:
1719 % \end{macrocode}
1720 % There should be a tangent and we iterate to find it, using
1721 % bisection. If there is one to be found it will be at the
1722 % current middle point. The tangent point will be somewhere
1723 % between the two points that lead to opposite signed scalar
1724 % products.
1725 % \begin{macrocode}
1726 forever:
1727 if (sl*sm < 0): % opposite signs, look between pl & pm
1728 pr:=pm; pm:=0.5(pr+pl);
1729 vecpr := vecpm; veclr := veclm; sr:=sm;
1730 else:
1731 pl:=pm; pm:=0.5(pr+pl);
1732 vecpl:=vecpm; vecll:=veclm; sl:=sm;
1733 fi
1734 stpsize:=pr-pl;
1735 ptm := point pm of pth;
1736 veclm := unitvector (z$-ptm);
1737 vecpm := unitvector (direction pm of pth);
1738 sm := veclm scalarprod vecpm;
1739 % \end{macrocode}
1740 % We stop the iteration if the step size is too small or the
1741 % middle point is the tangent point. In either case, the
1742 % middle point is the best guess that can be made.
1743 % \begin{macrocode}
1744 wtest := (stpsize < tantol) or (abs sm < tantol);
1745 if wtest:
1746 if (abs sm < tantol):
1747 z$tan = ptm;
1748 else:
1749 z$tan = ptm;
1750 %%%%%% errmessage("Warning: tangent approximated");
1751 fi
1752 fi
1753 exitif wtest;
1754 endfor
1755 fi
1756 enddef;
1757
1758 % \end{macrocode}
1759 % \end{routine}
1760 %
1761 %
1762 % Set the mode and font setup.
1763 % \begin{macrocode}
1764
1765 font_coding_scheme:="ASCII minuscules and punctuation";
1766 mode_setup;
1767 rotunda_font_setup;
1768
1769 % \end{macrocode}
1770 %
1771 %
1772 % We generate letters, together with some punctuation and
1773 % analphabetics.
1774 % \begin{macrocode}
1775
1776 input rtndl; % lower case
1777 input rtndu; % capitals
1778 input rtndpunct; % punctuation
1779 input rtndlig; % the several dashes
1780 input rtnddig; % arabic digits
1781
1782 % \end{macrocode}
1783 %
1784 % Set up the spacings, stretches and shrinks.
1785 %
1786 % \begin{macrocode}
1787
1788 font_slant slant; font_x_height x_height#;
1789 if monospace:
1790 font_normal_space vstretch*9u#; % no stretching or shrinking
1791 font_quad vstretch*18u#;
1792 font_extra_space vstretch*9u#;
1793 else:
1794 font_normal_space vstretch*6u#+2letter_fit#;
1795 font_normal_stretch vstretch*3u#; font_normal_shrink vstretch*2u#;
1796 font_quad vstretch*18u#+4letter_fit#;
1797 font_extra_space vstretch*2u#;
1798
1799 % \end{macrocode}
1800 %
1801 % Finally, do the ligtables, but I don't think they are needed (yet?).
1802 %
1803 % \begin{macrocode}
1804
1805 fi
1806
1807 bye.
1808
1809 k#:=-.5u#; kk#:=-1.5u#; kkk#:=-2u#; % three degrees of kerning
1810 kks#:=-4u#; kkx#:=-1.5u#; kkj#:=-2u#; kkr#:=-5u#; kkrs#:=-2u#; kkrl#:=-8u#;
1811 ligtable "s":
1812 "a" kern kks#, "A" kern kks#,
1813 "c" kern kks#, "C" kern kks#,
1814 "d" kern kks#, "D" kern kks#,
1815 "e" kern kks#, "E" kern kks#,
1816 "f" kern kks#, "F" kern kks#,
1817 "g" kern kks#, "G" kern kks#,
1818 "i" kern kks#, "I" kern kks#,
1819 "j" kern kks#, "J" kern kks#,
1820 "k" kern kks#, "K" kern kks#,
1821 "m" kern kks#, "M" kern kks#,
1822 "n" kern kks#, "N" kern kks#,
1823 "o" kern kks#, "O" kern kks#,
1824 "p" kern kks#, "P" kern kks#,
1825 "q" kern kks#, "Q" kern kks#,
1826 "r" kern kks#, "R" kern kks#,
1827 "t" kern kks#, "T" kern kks#,
1828 "u" kern kks#, "U" kern kks#,
1829 "v" kern kks#, "V" kern kks#,
1830 "w" kern kks#, "W" kern kks#,
1831 "x" kern kks#, "X" kern kks#,
1832 "y" kern kks#, "Y" kern kks#,
1833 "z" kern kks#, "Z" kern kks#;
1834
1835 ligtable "S":
1836 "a" kern kks#, "A" kern kks#,
1837 "c" kern kks#, "C" kern kks#,
1838 "d" kern kks#, "D" kern kks#,
1839 "e" kern kks#, "E" kern kks#,
1840 "f" kern kks#, "F" kern kks#,
1841 "g" kern kks#, "G" kern kks#,
1842 "i" kern kks#, "I" kern kks#,
1843 "j" kern kks#, "J" kern kks#,
1844 "k" kern kks#, "K" kern kks#,
1845 "m" kern kks#, "M" kern kks#,
1846 "n" kern kks#, "N" kern kks#,
1847 "o" kern kks#, "O" kern kks#,
1848 "p" kern kks#, "P" kern kks#,
1849 "q" kern kks#, "Q" kern kks#,
1850 "r" kern kks#, "R" kern kks#,
1851 "t" kern kks#, "T" kern kks#,
1852 "u" kern kks#, "U" kern kks#,
1853 "v" kern kks#, "V" kern kks#,
1854 "w" kern kks#, "W" kern kks#,
1855 "x" kern kks#, "X" kern kks#,
1856 "y" kern kks#, "Y" kern kks#,
1857 "z" kern kks#, "Z" kern kks#;
1858
1859 ligtable "x":
1860 "a" kern kkx#, "A" kern kkx#,
1861 "b" kern kkx#, "B" kern kkx#,
1862 "c" kern kkx#, "C" kern kkx#,
1863 "d" kern kkx#, "D" kern kkx#,
1864 "e" kern kkx#, "E" kern kkx#,
1865 "g" kern kkx#, "G" kern kkx#,
1866 "j" kern kkx#, "J" kern kkx#,
1867 "l" kern kkx#, "L" kern kkx#,
1868 "o" kern kkx#, "O" kern kkx#,
1869 "q" kern kkx#, "Q" kern kkx#,
1870 "t" kern kkx#, "T" kern kkx#,
1871 "u" kern kkx#, "U" kern kkx#,
1872 "v" kern kkx#, "V" kern kkx#,
1873 "w" kern kkx#, "W" kern kkx#,
1874 "y" kern kkx#, "Y" kern kkx#;
1875
1876 ligtable "X":
1877 "a" kern kkx#, "A" kern kkx#,
1878 "b" kern kkx#, "B" kern kkx#,
1879 "c" kern kkx#, "C" kern kkx#,
1880 "d" kern kkx#, "D" kern kkx#,
1881 "e" kern kkx#, "E" kern kkx#,
1882 "g" kern kkx#, "G" kern kkx#,
1883 "j" kern kkx#, "J" kern kkx#,
1884 "l" kern kkx#, "L" kern kkx#,
1885 "o" kern kkx#, "O" kern kkx#,
1886 "q" kern kkx#, "Q" kern kkx#,
1887 "t" kern kkx#, "T" kern kkx#,
1888 "u" kern kkx#, "U" kern kkx#,
1889 "v" kern kkx#, "V" kern kkx#,
1890 "w" kern kkx#, "W" kern kkx#,
1891 "y" kern kkx#, "Y" kern kkx#;
1892
1893 ligtable "a": "A":
1894 "b": "B":
1895 "c": "C":
1896 "d": "D":
1897 "e": "E":
1898 "h": "H":
1899 "i": "I":
1900 "k": "K":
1901 "l": "L":
1902 "m": "M":
1903 "n": "N":
1904 "o": "O":
1905 "p": "P":
1906 "t": "T":
1907 "u": "U":
1908 "v": "V":
1909 "w": "W":
1910 "z": "Z":
1911 "j" kern kkj#, "J" kern kkj#;
1912
1913 ligtable "r":
1914 "a" kern kkr#, "A" kern kkr#,
1915 "b" kern kkr#, "B" kern kkr#,
1916 "c" kern kkr#, "C" kern kkr#,
1917 "d" kern kkr#, "D" kern kkr#,
1918 "e" kern kkr#, "E" kern kkr#,
1919 "f" kern kkrs#, "F" kern kkrs#,
1920 "g" kern kkrs#, "G" kern kkrs#,
1921 "h" kern kkr#, "H" kern kkr#,
1922 "i" kern kkr#, "I" kern kkr#,
1923 "j" kern kkj#, "J" kern kkj#,
1924 "k" kern kkrs#, "K" kern kkrs#,
1925 "l" kern kkr#, "L" kern kkr#,
1926 "m" kern kkr#, "M" kern kkr#,
1927 "n" kern kkrs#, "N" kern kkrs#,
1928 "o" kern kkr#, "O" kern kkr#,
1929 "p" kern kkrs#, "P" kern kkrs#,
1930 "q" kern kkr#, "Q" kern kkr#,
1931 "r" kern kkrs#, "R" kern kkrs#,
1932 "s" kern kkr#, "S" kern kkr#,
1933 "t" kern kkr#, "T" kern kkr#,
1934 "u" kern kkr#, "U" kern kkr#,
1935 "v" kern kkr#, "V" kern kkr#,
1936 "w" kern kkr#, "W" kern kkr#,
1937 "x" kern kkx#, "X" kern kkx#,
1938 "y" kern kkr#, "Y" kern kkr#,
1939 "z" kern kkr#, "Z" kern kkr#;
1940
1941 ligtable "R":
1942 "a" kern kkr#, "A" kern kkr#,
1943 "b" kern kkr#, "B" kern kkr#,
1944 "c" kern kkr#, "C" kern kkr#,
1945 "d" kern kkr#, "D" kern kkr#,
1946 "e" kern kkr#, "E" kern kkr#,
1947 "f" kern kkrs#, "F" kern kkrs#,
1948 "g" kern kkrs#, "G" kern kkrs#,
1949 "h" kern kkr#, "H" kern kkr#,
1950 "i" kern kkr#, "I" kern kkr#,
1951 "j" kern kkj#, "J" kern kkj#,
1952 "k" kern kkrs#, "K" kern kkrs#,
1953 "l" kern kkr#, "L" kern kkr#,
1954 "m" kern kkr#, "M" kern kkr#,
1955 "n" kern kkrs#, "N" kern kkrs#,
1956 "o" kern kkr#, "O" kern kkr#,
1957 "p" kern kkrs#, "P" kern kkrs#,
1958 "q" kern kkr#, "Q" kern kkr#,
1959 "r" kern kkrs#, "R" kern kkrs#,
1960 "s" kern kkr#, "S" kern kkr#,
1961 "t" kern kkr#, "T" kern kkr#,
1962 "u" kern kkr#, "U" kern kkr#,
1963 "v" kern kkr#, "V" kern kkr#,
1964 "w" kern kkr#, "W" kern kkr#,
1965 "x" kern kkx#, "X" kern kkx#,
1966 "y" kern kkr#, "Y" kern kkr#,
1967 "z" kern kkr#, "Z" kern kkr#;
1968
1969
1970 fi
1971
1972 bye.
1973
1974 %</mfd>
1975 % \end{macrocode}
1976 %
1977 % \subsection{The code for normal letters}
1978 %
1979 % The following code is for the lower case characters.
1980 %
1981 % \begin{macrocode}
1982 %<*min>
1983 % RTNDL.MF Program file for Early Gothic lower case
1984 %
1985
1986 % \end{macrocode}
1987 %
1988 %
1989 % \begin{routine}{a}
1990 % The letter `a'.
1991 % \begin{macrocode}
1992 cmchar "RTND letter a";
1993 beginchar("a", 2sb#+hstretch*(9/16x_height#+jut#),
1994 x_height#, 0);
1995 adjust_fit(0,0);
1996 pcshiftx := sb;
1997 numeric n[];
1998 path pth[];
1999 pair pr[];
2000 pickup quill;
2001 n1 := w - 2pcshiftx -jut; % effective letter width
2002 % "stem"
2003 x1=1/2w; top y1=h;
2004 rt x2 = w-pcshiftx-jut; top y2 = bot y1;
2005 x3 = x2; bot y3 = 0;
2006 z4 = z3 shifted (jut*pdir);
2007 pth1 := z1--z2--z3--z4;
2008 % bowl
2009 rt x6 = lft x3; bot y6 = 0;
2010 lft x5 = pcshiftx; bot y5 = 1/4h;
2011
2012 z15 = (lft x5, bot y5); z25 = (rt x5, top y5);
2013 z7 = whatever[z15,z25] = whatever[z2,z3];
2014 x8 = x25; y8 = y25 + 1/2(y1-y7);
2015
2016 %%ductus:=true;
2017 if ductus:
2018 pickup stylus;
2019 else:
2020 % draw stem
2021 draw pth1;
2022 % draw bowl
2023 draw z5--z6;
2024 pickup stylus;
2025 draw z5--z7;
2026 draw z1{-pdir}..z8..z7{pdir};
2027 fi
2028 ductus:=false;
2029 penlabels(1,2,3,4,5,6,7,8,11,12,13,14,15,100);
2030 endchar; % end "a"
2031
2032 % \end{macrocode}
2033 % \end{routine}
2034 %
2035 % \begin{routine}{b}
2036 % The letter `b'.
2037 % \begin{macrocode}
2038 cmchar "RTND letter b";
2039 beginchar("b", 2sb#+hstretch*(11/16x_height#+jut#),
2040 asc_height#, 0);
2041 adjust_fit(0,0);
2042 numeric n[];
2043 path pth[];
2044 pcshiftx := sb;
2045 pickup quill;
2046 n1:=w-2pcshiftx; % actual letter width
2047 n2:=h/ascratio; % top of bowl
2048 %%ductus:=true;
2049 lft x1 = pcshiftx+jut; top y1=h;
2050 x3 = x1; bot y3= thick;
2051 rt x5 = w-pcshiftx; y5=1/2n2;
2052 x4 = 1/2[x3,x5]; bot y4=0;
2053 x6=1/2[x4,x5]; top y6=n2;
2054 pth1 := z1..z3{down}..z4{right}.. z5{up};
2055 z98=(0,3/4n2); z99=(w,y98);
2056 pth2 := z98--z99;
2057 %z7 = pth1 intersectionpoint pth2;
2058 z7=(x1,6/8n2);
2059 if ductus:
2060 pickup stylus;
2061 fi
2062 %draw z1--z3{down}..z4{right}..z5{up}..z6;
2063 %draw z6--z7;
2064 draw z1--z3--z4;
2065 draw z4{pdir}..z5{up}..{-pdir}z7;
2066 %draw_flatserif(1,3,srad);
2067 draw_flat_head(1);
2068 ductus:=false;
2069 penlabels(1,2,3,4,5,6,7,8,9,100);
2070 endchar; % end "b"
2071
2072 % \end{macrocode}
2073 % \end{routine}
2074 %
2075 %
2076 % \begin{routine}{c}
2077 % The letter `c'.
2078 % \begin{macrocode}
2079 cmchar "RTND letter c";
2080 beginchar("c", 2sb#+hstretch*(9/16x_height#),
2081 x_height#, 0);
2082 adjust_fit(0,0);
2083 numeric n[];
2084 pcshiftx := sb;
2085 pickup quill;
2086 n1:=w-2pcshiftx; % actual letter width
2087 n2:=6/5w-2pcshiftx; % width of full bowl
2088 x1=pcshiftx + 1/2n1; top y1 = h;
2089 lft x2 = pcshiftx; y2 = 1/2h;
2090 x3 = x1; bot y3 = 0;
2091 rt x4 = w-pcshiftx; y4 = 1/4h;
2092 x24 = x4; y24 = 3/4h;
2093 %%ductus:=true;
2094 if ductus:
2095 pickup stylus;
2096 fi
2097 draw z24--z1{left}...z2{down}..z3{right}..z4{pdir};
2098 ductus:=false;
2099 penlabels(1,2,3,4,5,6,14,16,17,18,100);
2100 endchar; % end "c"
2101
2102 % \end{macrocode}
2103 % \end{routine}
2104 %
2105 % \begin{routine}{d}
2106 % The letter `d'.
2107 % \begin{macrocode}
2108 cmchar "RTND letter d";
2109 beginchar("d", 2sb#+hstretch*(11/16x_height#+jut#),
2110 asc_height#, 0);
2111 adjust_fit(0,0);
2112 numeric n[];
2113 path pth[];
2114 pcshiftx := sb;
2115 pickup quill;
2116 n1 = h/ascratio; % x-height
2117 rt x1=w-pcshiftx-jut; top y1=h;
2118 x2 = x1; bot y2=0;
2119 x3 = x1; y3 = 1/4n1;
2120 lft x5 = pcshiftx; y5=6/8n1;
2121 x4 = 3/8[x3,x5]; bot y4 = 0;
2122 x6=1/2[x4,x5]; top y6 = n1;
2123 x7=x3; top y7=n1;
2124 rt x8 = w-pcshiftx; y8=n1;
2125 if ductus:
2126 pickup stylus;
2127 fi
2128 draw z1--z2;
2129 draw_flatserif(1,2,srad);
2130 %draw_roundserif(2,1,srad);
2131 draw_flat_foot(2);
2132 %%draw z3..z4{left}..z5{up}..z6;
2133 draw z3..z4{left}.. tension 0.8 ..z5{up}..z6;
2134 draw z6..z7..z8;
2135 ductus:=false;
2136 penlabels(0,1,2,3,4,5,6,7,8,100);
2137 endchar; % end "d"
2138
2139 % \end{macrocode}
2140 % \end{routine}
2141 %
2142 % \begin{routine}{e}
2143 % The letter `e'.
2144 % \begin{macrocode}
2145 cmchar "RTND letter e";
2146 beginchar("e", sb#+hstretch*(15/16x_height#),
2147 x_height#, 0);
2148 adjust_fit(0,0);
2149 pcshiftx := sb;
2150 numeric n[];
2151 path pth[];
2152 pickup quill;
2153 n1 := w-pcshiftx; % actual letter width
2154 n2 := 6/8n1; % width of bowl
2155 x1 = pcshiftx + 5/8n2; top y1=h;
2156 lft x2 = pcshiftx; y2 = 1/2h;
2157 x3 = pcshiftx + 1/2n2; bot y3 = 0;
2158 rt x4 = pcshiftx + n2; y4 = 1/4h;
2159 %%z98=(0,3/8h); z99=(w,y98);
2160 z98=(0,2/8h); z99=(w,y98);
2161 pth1 := z98--z99;
2162 pth2 := z1{left}..z2{down}..z3{right};
2163 z7 = pth1 intersectionpoint pth2;
2164 rt x9 = w-pcshiftx; y9 = 3/4h;
2165 z8=1/2[z7,z9];
2166
2167 z70 = z7 shifted 10pdir;
2168 z17 = whatever[z7,z70];
2169 %%x17 = w-pcshiftx;
2170 top y17 = h;
2171
2172 rt x27=w-pcshiftx; top y27=h;
2173 pth3 := z7--z27; % diagonal
2174 pth4 := z1--z9;
2175
2176 z34 = pth3 intersectionpoint pth4;
2177 pth5 := z34--z1{left}...z2{down}..z3{right}..z4{pdir}; % bowl
2178 %%ductus:=true;
2179 if ductus:
2180 pickup stylus;
2181 fi
2182 %%draw z7{pdir}..z1{left}..z2{down}..z3{right}..z4{pdir};
2183 %%draw z7{pdir}..z8{right}..z9{pdir};
2184 %%draw z7--z17;
2185 draw pth5; % bowl
2186 %%draw pth3; % diagonal
2187 draw z34--z7; % daigonal
2188 ductus:=false;
2189 penlabels(1,2,3,4,5,6,7,8,9,17,27,34,70,100);
2190 endchar; % end "e"
2191
2192 % \end{macrocode}
2193 % \end{routine}
2194 %
2195 % \begin{routine}{f}
2196 % The letter `f'.
2197 % \begin{macrocode}
2198 cmchar "RTND letter f";
2199 beginchar("f", 2sb#+hstretch*(9/16x_height#+jut#),
2200 (asc_height#), 0);
2201 adjust_fit(0,0);
2202 numeric n[];
2203 pcshiftx := sb;
2204 pickup quill;
2205 n1 := h/ascratio; % x-height
2206 %% stem
2207 lft x1 = lft x2 = pcshiftx+jut; bot y2=0;
2208 %% flick
2209 rt x4 = w-pcshiftx; top y4 = h-thick;
2210 top y3 = h;
2211 lft x3 = rt x1;
2212 top y1 = bot y3;
2213 %% bar
2214 lft x5 = pcshiftx; top y5 = n1;
2215 rt x6 = lft x4; y6 = y5;
2216 %%ductus:=true;
2217 if ductus:
2218 pickup stylus;
2219 fi
2220 draw z1--z2; draw_flat_foot(2); % stem
2221 draw z3--z4; % top
2222 draw z5--z6; % bar
2223 ductus:=false;
2224 penlabels(1,2,3,4,5,6,7,8,14,15,16,100);
2225 endchar; % end "f"
2226
2227 % \end{macrocode}
2228 % \end{routine}
2229 %
2230 % \begin{routine}{g}
2231 % The letter `g'.
2232 % \begin{macrocode}
2233 cmchar "RTND letter g";
2234 beginchar("g", 2sb#+hstretch*(11/16x_height#+jut#),
2235 x_height#, desc_depth#);
2236 adjust_fit(0,0);
2237 numeric n[];
2238 path pth[];
2239 pcshiftx := sb;
2240 pickup quill;
2241 %%n1 = h/ascratio; % x-height
2242 rt x1=w-pcshiftx-jut; top y1=h;
2243 rt x2 = x1; y2=1/2h;
2244 x3 = x1; y3 = 0;
2245 rt x4 = w-pcshiftx; y4 = -1/2d;
2246 x5 = 1/2w; bot y5 = -d;
2247 lft x6 = pcshiftx; y6 = top y5;
2248 x13 = x1; y13 = 1/4h;
2249 lft x15 = pcshiftx; y15=6/8h;
2250 x14 = 3/8[x13,x15]; bot y14 = 0;
2251 x16=1/2[x14,x15]; top y16 = h;
2252 x17=x13; top y17=h;
2253 rt x18 = w-pcshiftx; y18=h;
2254 if ductus:
2255 pickup stylus;
2256 fi
2257 % stem
2258 %draw z1..z3..z4{down}..z5{left}..z6;
2259 draw z1..z13..z4{down}..z5{left}..z6;
2260 draw z6--z13;
2261 %% top bowl
2262 draw z13..z14{left}..z15{up}..z16;
2263 draw z16..z17..z18;
2264 ductus:=false;
2265 penlabels(0,1,2,3,4,5,6,7,8,13,14,15,16,17,18,100);
2266 endchar; % end "g"
2267
2268 % \end{macrocode}
2269 % \end{routine}
2270 %
2271 % \begin{routine}{h}
2272 % The letter `h'.
2273 % \begin{macrocode}
2274 cmchar "RTND letter h";
2275 beginchar("h", 2sb#+hstretch*(11/16x_height#+jut#),
2276 asc_height#, 0);
2277 adjust_fit(0,0);
2278 pcshiftx := sb;
2279 pickup quill;
2280 numeric n[];
2281 %% stem
2282 lft x1=lft x2=pcshiftx+jut;
2283 top y1=h; bot y2=0;
2284 %% bowl
2285 z3=1/2[z2,z1];
2286 rt x5 = w-pcshiftx; y5=y3;
2287 x4=9/16[x3,x5]; top y4 = h/ascratio;
2288 %%lft x6=x4; bot y6=0;
2289 x6=9/16[x4,x5];
2290 bot y6=0;
2291 %%ductus:=true;
2292 if ductus:
2293 pickup stylus;
2294 fi
2295 %draw_tstem(1,2,srad); % stem
2296 %draw_flatserif(1,2,srad);
2297 %%draw_roundserif(2,1,srad);
2298 draw z1--z2;
2299 draw_flat_head(1); draw_flat_foot(2);
2300 draw z3--z4{right}...z5{down}...z6{-pdir};
2301
2302 ductus:=false;
2303 penlabels(1,2,3,4,5,6,100);
2304 endchar; % end "h"
2305
2306 % \end{macrocode}
2307 % \end{routine}
2308 %
2309 % \begin{routine}{i}
2310 % The letter `i'.
2311 % \begin{macrocode}
2312 cmchar "RTND letter i";
2313 beginchar("i", 2sb#+hstretch*(thick#+2jut#),
2314 x_height#, 0);
2315 adjust_fit(0,0);
2316 pcshiftx := sb;
2317 pickup quill;
2318 lft x1=lft x2=pcshiftx+jut;
2319 top y1=h; bot y2= thick;
2320 bot y3 = 0; rt x3 = w-pcshiftx;
2321 x8 = x1; y8 = h + 3/2thick;
2322 %%ductus:=true;
2323 draw_tstem(1,2,srad);
2324 draw_flatserif(1,2,srad);
2325 %draw_roundserif(2,1,srad);
2326 draw z2--z3;
2327 draw_pdot(8, dot_size);
2328 ductus:=false;
2329 penlabels(1,2,100);
2330 endchar; % end "i"
2331
2332 % \end{macrocode}
2333 % \end{routine}
2334 %
2335 % \begin{routine}{j}
2336 % The letter `j'. This letter was not in the script, it being a later invention.
2337 % \begin{macrocode}
2338 cmchar "RTND letter j";
2339 beginchar("j", sb#+hstretch*(3/8x_height#),
2340 x_height#, desc_depth#);
2341 adjust_fit(0,0);
2342 pcshiftx := sb;
2343 numeric n[];
2344 pickup quill;
2345 %% stem
2346 rt x1 = w-pcshiftx; top y1 = h;
2347 x2=x1; y2=-1/2d;
2348 %% bottom hook
2349 lft x3 = 0; bot y3 = -d;
2350 x8 = x1; y8 = h + 3/2thick;
2351 %%ductus:=true;
2352 if ductus:
2353 pickup stylus;
2354 fi
2355 draw z1--z2; % stem
2356 draw_flatserif(1,2,srad);
2357 draw z2{down}..z3{-pdir}; % hook
2358 draw_pdot(8, dot_size);
2359 ductus:=false;
2360 penlabels(1,2,3,100);
2361 endchar; % end "j"
2362
2363 % \end{macrocode}
2364 % \end{routine}
2365 %
2366 % \begin{routine}{k}
2367 % The letter `k'.
2368 % \begin{macrocode}
2369 cmchar "RTND letter k";
2370 beginchar("k", 2sb#+hstretch*(13/16x_height#+jut#),
2371 asc_height#, 0);
2372 adjust_fit(0,0);
2373 pcshiftx := sb;
2374 path pth[];
2375 numeric n[];
2376 pickup quill;
2377 %% stem
2378 n1 = h/ascratio; % x-height
2379 lft x1=lft x2=pcshiftx+jut;
2380 y1=h; bot y2=0;
2381 %% top arm
2382 %%z3=(x1,1/2n1);
2383 x3 = x1; top y3 = 1/2n1;
2384 rt x5=5/8[x1,w-pcshiftx]; top y5=n1;
2385 x4=1/2[x3,x5]; top y4=n1;
2386 pth1 := z3{pdir}..z5{up};
2387 %% lower arm
2388 pth2 := (rt x1,0)--(rt x1,h);
2389 z13 = pth1 intersectionpoint pth2;
2390 pickup threequarterquill;
2391 lft x14 = x13; bot y14 = y13;
2392 rt x7=w-pcshiftx; bot y7=0;
2393 pickup quill;
2394 %%ductus:=true;
2395 if ductus:
2396 pickup stylus;
2397 fi
2398 draw_tstem(1,2,srad); % stem
2399 draw_flatserif(1,2,srad);
2400 %draw_roundserif(2,1,srad);
2401 draw_flat_foot(2);
2402 draw pth1; % upper arm
2403 pickup threequarterquill;
2404 %%draw z14{down}..z7{-ppdir}; % lower arm
2405 %%draw z14{down}..z7; % lower arm
2406 draw z14{-ppdir}..z7{right}; % lower arm
2407 pickup quill;
2408 ductus:=false;
2409 penlabels(1,2,3,4,5,6,7,8,9,13,14,100);
2410 endchar; % end "k"
2411
2412 % \end{macrocode}
2413 % \end{routine}
2414 %
2415 % \begin{routine}{l}
2416 % The letter `l'.
2417 % \begin{macrocode}
2418 cmchar "RTND letter l";
2419 beginchar("l", 2sb#+hstretch*(thick#+2jut#),
2420 asc_height#, 0);
2421 adjust_fit(0,0);
2422 pcshiftx := sb;
2423 pickup quill;
2424 lft x1=pcshiftx+jut; top y1=h;
2425 x2=x1;
2426 bot y2 = thick;
2427 rt x3 = w-pcshiftx; bot y3 = 0;
2428 %%ductus:=true;
2429 if ductus:
2430 pickup stylus;
2431 fi
2432 draw_tstem(1,2,srad);
2433 draw_flatserif(1,2,srad);
2434 %draw_roundserif(2,1,srad);
2435 draw z2--z3;
2436 ductus:=false;
2437 penlabels(1,2,3,4,100);
2438 endchar; % end "l"
2439
2440 % \end{macrocode}
2441 % \end{routine}
2442 %
2443 % \begin{routine}{m}
2444 % The letter `m'.
2445 % \begin{macrocode}
2446 cmchar "RTND letter m";
2447 beginchar("m", 2sb#+hstretch*(15/16x_height#+2jut#), % 12/16 too narrow, 14 a bit
2448 x_height#, 0);
2449 adjust_fit(0,0);
2450 pcshiftx := sb;
2451 numeric n[];
2452 path pth[];
2453 pickup quill;
2454 %% left stem
2455 lft x1=pcshiftx+jut; top y1=h;
2456 x2=x1; bot y2=0;
2457 %% start of bowl
2458 x13=x1; y13=3/4h;
2459 %% bottom of right and middle stems
2460 rt x6 = w -pcshiftx - jut; y6=y2;
2461 z4 = 1/2[z2,z6];
2462 %% top of middle and right stems
2463 x3=x4; y3=y1;
2464 x5=x6; y5=y13;
2465 %% top of bowls
2466 x14=2/3[x13,x3]; top y14 = h;
2467 x33=x4; y33=y13;
2468 x34=2/3[x33,x5]; y34 = y14;
2469 %%ductus:=true;
2470 if ductus:
2471 pickup stylus;
2472 fi
2473 draw_tstem(1,2,srad); % left half
2474 draw_flatserif(1,2,srad);
2475 %draw_roundserif(2,1,srad);
2476 draw_flat_foot(2);
2477 draw z13--z14{right}..z33{down}--z4;
2478 %draw_roundserif(4,3,srad);
2479 draw_flat_foot(4);
2480 draw z33--z34{right}..z5{down}--z6;
2481 draw_roundserif(6,5,srad);
2482 ductus:=false;
2483 penlabels(1,2,3,4,5,6,7,8,9,13,14,33,34,100);
2484 endchar; % end "m"
2485
2486 % \end{macrocode}
2487 % \end{routine}
2488 %
2489 % \begin{routine}{n}
2490 % The letter `n'.
2491 % \begin{macrocode}
2492 cmchar "RTND letter n";
2493 beginchar("n", 2sb#+hstretch*(9/16x_height#+2jut#),
2494 x_height#, 0);
2495 adjust_fit(0,0);
2496 pcshiftx := sb;
2497 pickup quill;
2498 %% left stem
2499 lft x1=pcshiftx+jut; top y1=h;
2500 x2=x1; bot y2=0;
2501 % start of bowl
2502 x13=x1; y13=3/4h;
2503 %% right stem
2504 rt x4 = w-pcshiftx-jut; y4=y2;
2505 x3 = x4; y3 = y13;
2506 % top of bowl
2507 x14 = 2/3[x13,x3]; top y14 = h;
2508 %%ductus:=true;
2509 if ductus:
2510 pickup stylus;
2511 fi
2512 draw_tstem(1,2,srad); % left stem
2513 draw_flatserif(1,2,srad);
2514 %draw_roundserif(2,1,srad);
2515 draw_flat_foot(2);
2516 draw z13--z14{right}..z3{down}--z4;
2517 draw_roundserif(4,3,srad);
2518 ductus:=false;
2519 penlabels(1,2,3,4,5,6,13,14,100);
2520 endchar; % end "n"
2521
2522 % \end{macrocode}
2523 % \end{routine}
2524 %
2525 % \begin{routine}{o}
2526 % The letter `o'.
2527 % \begin{macrocode}
2528 cmchar "RTND letter o";
2529 beginchar("o", 2sb#+hstretch*(7/8x_height#),
2530 x_height#, 0);
2531 adjust_fit(0,0);
2532 pcshiftx := sb;
2533 pickup quill;
2534 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
2535 x2=x4=w/2; top y2=h+o; bot y4=-o;
2536 draw z2..z3..z4{left}.. tension 0.8 ..{up}z1..cycle;
2537 %z5=(pcshiftx,-o);
2538 %obowl(5, w-2pcshiftx, h+2o);
2539 %%ductus:=true;
2540 if ductus:
2541 pickup stylus;
2542 draw obfirst; draw obsecond; draw obouter; draw obinner;
2543 else:
2544 %% fill obouter; unfill obinner;
2545 fi
2546 ductus:=false;
2547 penlabels(1,2,3,4,5,100);
2548 endchar; % end "o"
2549
2550 % \end{macrocode}
2551 % \end{routine}
2552 %
2553 % \begin{routine}{p}
2554 % The letter `p'.
2555 % \begin{macrocode}
2556 cmchar "RTND letter p";
2557 beginchar("p", 2sb#+hstretch*(14/16x_height#+jut#),
2558 x_height#, desc_depth#);
2559 adjust_fit(0,0);
2560 pcshiftx := sb;
2561 numeric n[];
2562 pickup quill;
2563 %% stem
2564 lft x1=lft x2=pcshiftx+jut;
2565 top y1=h; bot y2=-d;
2566 %% bowl % from "d"
2567 z3=3/4[(x1,0),z1];
2568 rt x5 = w-pcshiftx; y5=1/2h;
2569 x4=1/2[x3,x5]; top y4 = h;
2570 x6=x4; bot y6=0;
2571 z7=1/4[(x1,0),z1];
2572
2573 %%ductus:=true;
2574 if ductus:
2575 pickup stylus;
2576 fi
2577 draw_tstem(1,2,srad); % stem
2578 draw_flatserif(1,2,srad);
2579 %draw_roundserif(2,1,srad)
2580 draw_flat_foot(2);
2581 draw z3--z4; draw z4..z5{down}..z6{left}..z7;
2582 ductus:=false;
2583 penlabels(1,2,3,4,5,6,7,8,100);
2584 endchar; % end "p"
2585
2586 % \end{macrocode}
2587 % \end{routine}
2588 %
2589 % \begin{routine}{q}
2590 % The letter `q'.
2591 % \begin{macrocode}
2592 cmchar "RTND letter q";
2593 beginchar("q", 2sb#+hstretch*(7/8x_height#),
2594 x_height#, desc_depth#);
2595 adjust_fit(0,0);
2596 pcshiftx := sb;
2597 numeric n[];
2598 pickup quill;
2599 %% right stem
2600 rt x1=w-pcshiftx; top y1=h;
2601 x2=x1; bot y2=-d;
2602 %% bowl
2603 z3=1/4[(x1,0),z1];
2604 lft x5=pcshiftx; y5=1/2h;
2605 x4=1/2[x3,x5]; bot y4=0;
2606 x6=x4; top y6=h;
2607 %%z7=3/4[(x1,0),z1];
2608 z7=z1;
2609 %%ductus:=true;
2610 if ductus:
2611 pickup stylus;
2612 fi
2613 draw_tstem(1,2,srad);
2614 %%draw_flatserif(1,2,srad);
2615 %%draw_roundserif(2,1,srad);
2616 draw_flat_foot(2);
2617 draw z3{-pdir}..z4{left}..z5{up}..z6{right}..z7{pdir};
2618 ductus:=false;
2619 penlabels(0,1,2,3,4,5,6,7,8,100);
2620 endchar; % end "q"
2621
2622 % \end{macrocode}
2623 % \end{routine}
2624 %
2625 % \begin{routine}{r}
2626 % The letter `r'.
2627 % \begin{macrocode}
2628 cmchar "RTND letter r";
2629 beginchar("r", 2sb#+hstretch*(11/16x_height#+jut#),
2630 x_height#, 0);
2631 adjust_fit(0,0);
2632 pcshiftx := sb;
2633 numeric n[];
2634 pickup quill;
2635 %% stem
2636 lft x1=lft x2=pcshiftx+jut;
2637 top y1=h; bot y2=0;
2638 %% bowl
2639 z3=3/4[z2,z1];
2640 rt x5 = w-pcshiftx; y5=y3;
2641 x4=1/2[x3,x5]; top y4 = h;
2642 %%ductus:=true;
2643 if ductus:
2644 pickup stylus;
2645 fi
2646 draw_tstem(1,2,srad); % stem
2647 draw_flatserif(1,2,srad);
2648 draw_flat_foot(2);
2649 %%draw_roundserif(2,1,srad);
2650 draw z3{pdir}..z4{right}..z5{pdir};
2651 ductus:=false;
2652 penlabels(1,2,3,4,5,6,7,8,9,100);
2653 endchar; % end "r"
2654
2655 % \end{macrocode}
2656 % \end{routine}
2657 %
2658 % \begin{routine}{s}
2659 % The letter `s'.
2660 % \begin{macrocode}
2661 cmchar "RTND letter s";
2662 beginchar("s", 2sb#+hstretch*(7/8x_height#),
2663 x_height#, 0);
2664 adjust_fit(0,0);
2665 numeric n[];
2666 pcshiftx := sb;
2667 pickup quill;
2668
2669 % center
2670 z50=(1/2w, 1/2h);
2671 x60 = w-pcshiftx; z60 = z50 shifted (whatever*pdir);
2672 x40 = pcshiftx; z40 = z50 shifted (whatever*pdir);
2673 rt x5 = x50; top y5 = y50;
2674 z54 = (lft x5, bot y5);
2675 lft x6 = x50; bot y6 = y50;
2676 z56 = (rt x6, top y6);
2677
2678 % top bowl
2679 z1 = 1/2[z56,z60];
2680 x3 = 1/2[x5,x1]; top y3 = h;
2681
2682 % bottom bowl
2683 z10 = 1/2[z54,z40];
2684 %x8 = 1/4[x6,x10];
2685 x8 = x56;
2686 bot y8 = 0;
2687
2688 %%ductus:=true;
2689 if ductus:
2690 pickup stylus;
2691 fi
2692 % top bowl
2693 draw z5{ppdir}..z3..z1{-ppdir};
2694
2695 % bottom bowl
2696 draw z6..z8{left}..z10{ppdir};
2697 ductus:=false;
2698 penlabels(1,2,3,4,5,6,7,8,9,10,11,17,20,26,27,28,40,50,54,56,60,100);
2699 endchar; % end "s"
2700
2701 % \end{macrocode}
2702 % \end{routine}
2703 %
2704 % \begin{routine}{t}
2705 % The letter `t'.
2706 % \begin{macrocode}
2707 cmchar "RTND letter t";
2708 beginchar("t", 2sb#+hstretch*(10/16x_height#+jut#),
2709 x_height#, 0);
2710 adjust_fit(0,0);
2711 pcshiftx := sb;
2712 numeric n[];
2713 pickup quill;
2714 %% bar
2715 lft x1 = pcshiftx; top y1 = h;
2716 rt x2 = w - pcshiftx; y2 = y1;
2717 %% stem
2718 lft x3 = rt x1; bot y3 = top y1;
2719 rt x5 = x2; bot y5 = 0;
2720 x4 = x3; bot y4 = thick;
2721 %%ductus:=true;
2722 if ductus:
2723 pickup stylus;
2724 fi
2725 draw z1--z2; % bar
2726 draw z3--z4--z5; % stem
2727 ductus:=false;
2728 penlabels(1,2,3,4,5,6,11,12,100);
2729 endchar; % end "t"
2730
2731 % \end{macrocode}
2732 % \end{routine}
2733 %
2734 % \begin{routine}{u}
2735 % The letter `u'.
2736 % \begin{macrocode}
2737 cmchar "RTND letter u";
2738 beginchar("u", 2sb#+hstretch*(9/16x_height#+2jut#),
2739 x_height#, 0);
2740 adjust_fit(0,0);
2741 pcshiftx := sb;
2742 numeric n[];
2743 pickup quill;
2744 %% left stem
2745 lft x1 = pcshiftx + jut; top y1 = h;
2746 % start of bowl
2747 x13=x1; y13=1/3h;
2748 % right stem
2749 rt x3=w-pcshiftx-jut; y3=y1;
2750 x4=x3; bot y4=0;
2751 z33=1/4[z4,z3]; % start of bowl
2752 % middle of bowl
2753 x14=1/3[x1,x3]; bot y14=0;
2754 %%ductus:=true;
2755 if ductus:
2756 pickup stylus;
2757 fi
2758 %%draw z1--z13{down}...z14{right}...z33{pdir};
2759 draw z1--z13--z14{right}...z33{pdir};
2760 draw_flatserif(1,13,srad);
2761 draw_tstem(3,4,srad); % right stem
2762 draw_flatserif(3,4,srad);
2763 draw_roundserif(4,3,srad);
2764 ductus:=false;
2765 penlabels(1,2,3,4,5,6,7,8,9,11,13,14,16,33,100);
2766 endchar; % end "u"
2767
2768 % \end{macrocode}
2769 % \end{routine}
2770 %
2771 % \begin{routine}{v}
2772 % The letter `v'.
2773 % \begin{macrocode}
2774 cmchar "RTND letter v";
2775 beginchar("v", 2sb#+hstretch*(11/16x_height#+jut#), % 13/16 too wide
2776 x_height#, 0);
2777 adjust_fit(0,0);
2778 pcshiftx := sb;
2779 pickup quill;
2780 %% left stem
2781 lft x1 = pcshiftx + jut; top y1 = h;
2782 %% right stem
2783 rt x5=w-pcshiftx; top y5 = h;
2784 bot y3 = 0;
2785 x3 = 1/2[x1,x5];
2786 z51 = (x1,0); z55=(x5,0);
2787 %%ductus:=true;
2788 if ductus:
2789 pickup stylus;
2790 fi
2791 draw z1{down}..z3; % left stem
2792 draw_flatserif(1,51,srad);
2793 draw z5{down}..z3; % right stem
2794 draw_flatserif(5,55,srad);
2795 ductus:=false;
2796 penlabels(1,2,3,4,5,11,13,14,23,26,100);
2797 endchar; % end "v"
2798
2799 % \end{macrocode}
2800 % \end{routine}
2801 %
2802 % \begin{routine}{w}
2803 % The letter `w'. This is a modern version as the font did not have a W.
2804 % \begin{macrocode}
2805 cmchar "RTND letter w";
2806 beginchar("w", 2sb#+hstretch*(15/16x_height#+2jut#),
2807 x_height#, 0);
2808 adjust_fit(0,0);
2809 pcshiftx := sb;
2810 pickup quill;
2811 %% left stem
2812 lft x1 = pcshiftx + jut; top y1 = h;
2813 % start of bowl
2814 x13=x1; y13=1/3h;
2815 % right stem
2816 rt x5=w-pcshiftx-jut; y5=y1;
2817 x6=x5; bot y6=0;
2818 z53=1/4[z6,z5]; % start of bowl
2819 % middle stem
2820 z3 = 1/2[z1,z5];
2821 z33=(x3,y13);
2822 % middle of bowl
2823 x14=1/3[x1,x3]; bot y14=0;
2824 % middle of right bowl
2825 x34=1/3[x3,x5]; y34=y14;
2826 %%ductus:=true;
2827 if ductus:
2828 pickup stylus;
2829 fi
2830 draw z1--z13--z14{right}...z33{pdir}; % left
2831 draw_flatserif(1,13,srad);
2832 draw z3--z33--z34{right}...z53{pdir}; % middle
2833 draw_flatserif(3,33,srad);
2834 draw_tstem(5,6,srad); % right stem
2835 draw_flatserif(5,6,srad);
2836 draw_roundserif(6,5,srad);
2837 ductus:=false;
2838 penlabels(1,2,3,4,5,6,7,8,9,11,13,14,33,34,53,16,100);
2839 endchar; % end "w"
2840
2841 % \end{macrocode}
2842 % \end{routine}
2843 %
2844 % \begin{routine}{x}
2845 % The letter `x'.
2846 % \begin{macrocode}
2847 cmchar "RTND letter x";
2848 beginchar("x", 2sb#+hstretch*(7/2thick#),
2849 x_height#, 0);
2850 adjust_fit(0,0);
2851 path pth[];
2852 numeric n[];
2853 pcshiftx := sb;
2854 pickup quill;
2855 n1 := w-2pcshiftx; % total width
2856 n2 := thick; % triangle side
2857 %% diag top left to bottom right
2858 lft x1 = pcshiftx; top y1 = h;
2859 rt x4 = w-pcshiftx; bot y4 = 0;
2860 x2 = x3 = 1/2w;
2861 top y5 = h; lft x5 = rt x2;
2862 top y2 = bot y5;
2863 rt x6 = w - pcshiftx; y6 = y2;
2864 y3 = h - y2;
2865 lft x8 = lft x1; bot y8 = 0;
2866 %%ductus:=true;
2867 if ductus:
2868 pickup stylus;
2869 fi
2870 draw z1--z2--z3--z4; % top left to bottom right
2871 draw z5--z6; % top right
2872 draw z3--z8; % bottom left
2873 ductus:=false;
2874 penlabels(1,2,3,4,5,6,7,8,10,25,251,252,40,50,150,60,160,100);
2875 endchar; % end "x"
2876
2877 % \end{macrocode}
2878 % \end{routine}
2879 %
2880 % \begin{routine}{y}
2881 % The letter `y'.
2882 % \begin{macrocode}
2883 cmchar "RTND letter y";
2884 beginchar("y", 2sb#+hstretch*(11/16x_height#+jut#),
2885 x_height#, desc_depth#);
2886 adjust_fit(0,0);
2887 pcshiftx := sb;
2888 path pth[];
2889 numeric n[];
2890 pickup quill;
2891 %% left stem top
2892 lft x1 = pcshiftx + jut; top y1 = h;
2893 bot y3 = 0;
2894 %% right stem
2895 rt x5=w-pcshiftx; top y5 = h;
2896 %%lft x9=-1/2w; bot y9 = -d;
2897 lft x9 = 0; bot y9 = -d;
2898 pth1 := z9{right}..z5{up};
2899 pth2 := (0,y3)--(w,y3);
2900 z99 = pth1 intersectionpoint pth2;
2901 x3 = x99;
2902 z51 = (x1,0); z55=(x5,0);
2903 %%ductus:=true;
2904 if ductus:
2905 pickup stylus;
2906 fi
2907 draw z1{down}..z3; % left stem
2908 draw_flatserif(1,51,srad);
2909 draw pth1; % right stem
2910 draw_flatserif(5,55,srad);
2911 ductus:=false;
2912 penlabels(1,2,3,4,5,6,7,8,9,10,100);
2913 endchar; % end "y"
2914
2915 % \end{macrocode}
2916 % \end{routine}
2917 %
2918 %
2919 % \begin{routine}{z}
2920 % The letter `z'.
2921 % \begin{macrocode}
2922 cmchar "RTND letter z";
2923 beginchar("z", 2sb#+hstretch*(12/16x_height#),
2924 x_height#, 0);
2925 adjust_fit(0,0);
2926 numeric n[];
2927 path pth[];
2928 pcshiftx := sb;
2929 pickup quill;
2930 %% top bar ends
2931 lft x1 = pcshiftx; rt x2 = w-pcshiftx;
2932 top y1 = top y2 = h;
2933 %% bottom bar ends
2934 lft x3 = pcshiftx; rt x4 = w-pcshiftx;
2935 bot y3 = bot y4 = 0;
2936 %% middle bar ends
2937 lft x5 = x1; rt x6 = x2;
2938 y5 = y6 = 1/2h;
2939 %%ductus:=true;
2940 if ductus:
2941 pickup stylus;
2942 fi
2943 draw z1--z2; draw z3--z4; draw z5--z6; % bars
2944 draw z2--z3; % diagonal
2945 ductus:=false;
2946 penlabels(1,2,3,4,5,6,10o,10i,20o,20i,100);
2947 endchar; % end "z"
2948
2949 % \end{macrocode}
2950 % \end{routine}
2951 %
2952 %
2953 % The end of this file
2954 % \begin{macrocode}
2955 %</min>
2956 % \end{macrocode}
2957 %
2958 %
2959 % \subsection{The code for capital letters}
2960 %
2961 % \thisfont{} `capitals' were drawn with the same pen as for the minuscules,
2962 % and the letters were merely larger versions of the minuscules.
2963 %
2964 % \begin{macrocode}
2965 %<*maj>
2966 % RTNDU.MF Program file for Early Gothic `capitals'
2967 %
2968
2969 % \end{macrocode}
2970 %
2971 %
2972 % \begin{routine}{A}
2973 % The letter `A'.
2974 % \begin{macrocode}
2975 cmchar "RTND letter A";
2976 beginchar("A", 2cap_sb#+caprat*hstretch*(3/4x_height#+jut#),
2977 caprat*x_height#, 0);
2978 adjust_fit(0,0);
2979 pcshiftx := cap_sb;
2980 numeric n[];
2981 path pth[];
2982 pair pr[];
2983 pickup quill;
2984 n1 := w - 2pcshiftx -jut; % effective letter width
2985 % right leg
2986 x1 = pcshiftx + 6/8n1; top y1=h;
2987 rt x2 = pcshiftx + n1; bot y2=0;
2988 pth1 := z1{down}..z2;
2989 z20 = 7/8[z1,z2];
2990
2991 % left leg
2992 rt x4 = lft x1; top y4 = y1;
2993
2994 lft x8 = pcshiftx; top y8 = -thin;
2995
2996 x6 = 3/8w; y6 = 1/2h;
2997 pth2 := z4..{down}z6..{-pdir}z8;
2998
2999 % top
3000 lft x11 = pcshiftx; top y11 = h - thick;
3001
3002 x14 = x1; y14 = y1;
3003
3004 x13 = 1/2[x11,x14]; y13 = y14;
3005 pth3 := z11{pdir}.. z13..z14;
3006
3007 %%ductus:=true;
3008 if ductus:
3009 pickup stylus;
3010 else:
3011 % draw stem
3012 draw pth1;
3013 % draw_roundserif(1,2,srad);
3014 draw_roundserif(2,20,srad);
3015 % draw bowl
3016 % draw z11{-pdir}..z13{down}..z15{pdir};
3017 % left leg
3018 draw pth2;
3019 % top
3020 draw pth3;
3021 fi
3022 ductus:=false;
3023 penlabels(1,2,3,4,5,6,7,8,11,12,13,14,15,20,100);
3024 endchar; % end "A"
3025
3026 % \end{macrocode}
3027 % \end{routine}
3028 %
3029 % \begin{routine}{B}
3030 % The letter `B'.
3031 % \begin{macrocode}
3032 cmchar "RTND letter B";
3033 beginchar("B", 2cap_sb#+caprat*hstretch*(3/4x_height#+jut#),
3034 caprat*x_height#, 0);
3035 adjust_fit(0,0);
3036 numeric n[];
3037 path pth[];
3038 pcshiftx := cap_sb;
3039 pickup quill;
3040 n1:=w-2pcshiftx; % actual letter width
3041 n2:=h/ascratio; % top of bowl
3042 %%ductus:=true;
3043 lft x1 = pcshiftx+2jut; top y1=7/8h;
3044 lft x13 = pcshiftx; top y13 = y1;
3045 x2 = x1; bot y2 = 0;
3046 z3 = 9/16[z2,z1];
3047 pth1 := z1--z2; % stem
3048
3049 rt x6 = w-pcshiftx; y6 = 2/3[y2,y3];
3050
3051 pth2 := z2{right}..z6...{-pdir}z3; % bottom bowl
3052
3053 rt x8 = lft x6; y8 = 13/16[y3,y1];
3054
3055 pth3 := z3{pdir}...z8..{-pdir}z13; % top bowl
3056 if ductus:
3057 pickup stylus;
3058 fi
3059 draw pth1;
3060 draw pth2;
3061 draw pth3;
3062 ductus:=false;
3063 penlabels(1,2,3,4,5,6,7,8,9,100);
3064 endchar; % end "B"
3065
3066 % \end{macrocode}
3067 % \end{routine}
3068 %
3069 %
3070 % \begin{routine}{C}
3071 % The letter `C'.
3072 % \begin{macrocode}
3073 cmchar "RTND letter C";
3074 beginchar("C", 2cap_sb#+caprat*hstretch*(5/8x_height#),
3075 caprat*x_height#, 0);
3076 adjust_fit(0,0);
3077 numeric n[];
3078 pcshiftx := cap_sb;
3079 pickup quill;
3080 n1:=w-2pcshiftx; % actual letter width
3081 n2:=6/5w-2pcshiftx; % width of full bowl
3082 x1=pcshiftx + 1/2n1; top y1 = h;
3083 lft x2 = pcshiftx; y2 = 1/2h;
3084 x3 = x1; bot y3 = 0;
3085 rt x4 = w-pcshiftx; y4 = 1/4h;
3086 x24 = x4; y24 = 3/4h;
3087 %%ductus:=true;
3088 if ductus:
3089 pickup stylus;
3090 fi
3091 draw z24..z1{left}..z2{down}..z3{right}..z4{pdir};
3092 ductus:=false;
3093 penlabels(1,2,3,4,5,6,14,16,17,18,100);
3094 endchar; % end "C"
3095
3096 % \end{macrocode}
3097 % \end{routine}
3098 %
3099 % \begin{routine}{D}
3100 % The letter `D'.
3101 % \begin{macrocode}
3102 cmchar "RTND letter D";
3103 beginchar("D", 2cap_sb#+caprat*hstretch*(3/4x_height#+jut#),
3104 caprat*x_height#, 0);
3105 adjust_fit(0,0);
3106 pcshiftx := cap_sb;
3107 numeric n[];
3108 path pth[];
3109 pickup quill;
3110 %% stem
3111 lft x1=lft x2=pcshiftx+2jut;
3112 top y1=h; bot y2=0;
3113 %% bowl
3114 rt x5 = w-pcshiftx;
3115 x4=1/2[x1,x5]; top y4 = h;
3116 x6'=x4; bot y6' = 5/16h;
3117 y5=1/2[y4,y6'];
3118 x7 = x2; y7 = y2;
3119 x6 = 1/2[x6',x5]; y6 = 1/2[y6',y7];
3120 lft x3 = pcshiftx; top y3 = y1;
3121 pth1 := z3{pdir}..z4..{down}z5..z6..{-pdir}z7; % bowl
3122 z14 = point 0.75 of pth1;
3123 pth2 := z2{pdir}..{up}z14;
3124 %%ductus:=true;
3125 if ductus:
3126 pickup stylus;
3127 fi
3128 %draw z1--z2;
3129 %draw_roundserif(2,1,srad)
3130 draw pth2;
3131 draw pth1;
3132 ductus:=false;
3133 penlabels(1,2,3,4,5,6,6',7,8,100);
3134 endchar; % end "D"
3135
3136
3137 % \end{macrocode}
3138 % \end{routine}
3139 %
3140 %
3141 % \begin{routine}{E}
3142 % The letter `E'.
3143 % \begin{macrocode}
3144 cmchar "RTND letter E";
3145 beginchar("E", 2cap_sb#+caprat*hstretch*(5/8x_height#),
3146 caprat*x_height#, 0);
3147 adjust_fit(0,0);
3148 pcshiftx := cap_sb;
3149 numeric n[];
3150 path pth[];
3151 pickup quill;
3152 %% bowl
3153 n1 := w-2pcshiftx; % actual letter width
3154 n2 := 6/5w-2pcshiftx; % width of full bowl
3155 x1=pcshiftx + 1/2n1; top y1 = h;
3156 lft x2 = pcshiftx; y2 = 1/2h;
3157 x3 = x1; bot y3 = 0;
3158 rt x4 = w-pcshiftx; y4 = 1/4h;
3159 x24 = x4; y24 = 3/4h;
3160 pth1 := z24..z1{left}..z2{down}..z3{right}..z4{pdir};
3161 % cross bar
3162 x31 = x2; y31 = y2;
3163 x32 = x4; y32 = y31;
3164 pth2 = z31--z32;
3165
3166 %%ductus:=true;
3167 if ductus:
3168 pickup stylus;
3169 fi
3170 draw pth1;
3171 draw pth2;
3172 ductus:=false;
3173 penlabels(1,2,3,4,5,6,14,16,17,18,24,31,32,100);
3174 endchar; % end "E"
3175
3176 % \end{macrocode}
3177 % \end{routine}
3178 %
3179 % \begin{routine}{F}
3180 % The letter `F'.
3181 % \begin{macrocode}
3182 cmchar "RTND letter F";
3183 beginchar("F", 2cap_sb#+caprat*hstretch*(10/16x_height#+jut#),
3184 caprat*x_height#, 0);
3185 adjust_fit(0,0);
3186 numeric n[];
3187 pcshiftx := cap_sb;
3188 pickup quill;
3189 n1 := h/ascratio; % x-height
3190 %% stem
3191 lft x1=lft x2=pcshiftx+jut; top y1=n1; bot y2=0;
3192 %% flick
3193 x4=x2; y4 = 1/2n1;
3194 rt x6=w-pcshiftx; y6 = 2/3h;
3195 x5 = 2/3[x4,x6]; top y5=h;
3196 %% bar
3197 z14=1/2[z4,z1];
3198 rt x16 = w -pcshiftx; top y16 = 1/2[y14,y6];
3199 %%ductus:=true;
3200 if ductus:
3201 pickup stylus;
3202 fi
3203 draw_tstem(1,2,srad); % stem
3204 draw_flatserif(1,2,srad);
3205 draw_roundserif(2,1,srad);
3206 draw z4{up}...z5{right}...z6; % top
3207 draw z14{right}..z16{pdir}; % bar
3208 ductus:=false;
3209 ductus:=false;
3210 penlabels(1,2,3,4,5,6,7,14,15,16,100);
3211 endchar; % end "F"
3212
3213 % \end{macrocode}
3214 % \end{routine}
3215 %
3216 % \begin{routine}{G}
3217 % The letter `G'.
3218 % \begin{macrocode}
3219 cmchar "RTND letter G";
3220 beginchar("G", 2cap_sb#+caprat*hstretch*(5/8x_height#),
3221 caprat*x_height#, 0);
3222 adjust_fit(0,0);
3223 pcshiftx := cap_sb;
3224 numeric n[];
3225 path pth[];
3226 pickup quill;
3227 %% bowl
3228 n1 := w-2pcshiftx; % actual letter width
3229 n2 := 6/5w-2pcshiftx; % width of full bowl
3230 x1=pcshiftx + 1/2n1; top y1 = h;
3231 lft x2 = pcshiftx; y2 = 1/2h;
3232 x3 = x1; bot y3 = 0;
3233 rt x4 = w-pcshiftx; y4 = 1/4h;
3234 x24 = x4; y24 = 3/4h;
3235 pth1 := z24..z1{left}..z2{down}..z3{right}..z4{pdir};
3236 % cross bar
3237 x31 = x2; y31 = y2;
3238 x32 = x4; y32 = y31;
3239 pth2 = z31--z32;
3240 % upright
3241 z41 = 5/8[z31,z32];
3242 z42 = z32;
3243 z43 = z4;
3244 lft x45 = x3; top y45 = - thick;
3245 pth3 := z41--z42--z43..{-pdir}z45;
3246
3247 %%ductus:=true;
3248 if ductus:
3249 pickup stylus;
3250 fi
3251 draw pth1;
3252 %draw pth2;
3253 draw pth3;
3254 ductus:=false;
3255 penlabels(1,2,3,4,5,6,14,16,17,18,24,31,32,100);
3256 endchar; % end "G"
3257
3258 % \end{macrocode}
3259 % \end{routine}
3260 %
3261 % \begin{routine}{H}
3262 % The letter `H'.
3263 % \begin{macrocode}
3264 cmchar "RTND letter H";
3265 beginchar("H", 2cap_sb#+caprat*hstretch*(5/8x_height#+2jut#),
3266 caprat*x_height#, 0);
3267 adjust_fit(0,0);
3268 pcshiftx := cap_sb;
3269 path pth[];
3270 pickup quill;
3271 numeric n[];
3272 %% stem
3273 lft x1=lft x2=pcshiftx+3jut;
3274 top y1=h; bot y2=0;
3275 % twiddle
3276 lft x16 = pcshiftx; top y16 = h;
3277 x18 = x1; y18 = y1;
3278 pth1 := z16{pdir}..{pdir}z18;
3279
3280 %% bowl
3281 z3=1/2[z2,z1];
3282 rt x5 = w-pcshiftx; y5=y3;
3283 x4=1/2[x3,x5]; top y4 = h/ascratio;
3284 %%lft x6=x4; bot y6=0;
3285 x6=1/2[x4,x5];
3286 %bot y6=0;
3287 top y6 = 0;
3288 %%ductus:=true;
3289 if ductus:
3290 pickup stylus;
3291 fi
3292 draw_tstem(1,2,srad); % stem
3293 %%draw_flatserif(1,2,srad);
3294 %draw_clubserif(1,2,0.5);
3295 draw_roundserif(2,1,srad);
3296 draw pth1;
3297 draw z3{pdir}..z4..z5..z6{-pdir};
3298
3299 ductus:=false;
3300 penlabels(1,2,3,4,5,6,100);
3301 endchar; % end "H"
3302
3303 % \end{macrocode}
3304 % \end{routine}
3305 %
3306 % \begin{routine}{I}
3307 % The letter `I'.
3308 % \begin{macrocode}
3309 cmchar "RTND letter I";
3310 beginchar("I", 2cap_sb#+caprat*hstretch*(thick#+3jut#),
3311 caprat*x_height#, 0);
3312 adjust_fit(0,0);
3313 pcshiftx := cap_sb;
3314 path pth[];
3315 pickup quill;
3316 rt x1 = w - pcshiftx - jut;
3317 x2 = x1;
3318 top y1=h; bot y2=0;
3319 % bar
3320 lft x6 = pcshiftx; top y6 = h;
3321 x8 = x1; y8 = y1;
3322 pth1 := z6{pdir}..{pdir}z8;
3323 %ductus:=true;
3324 draw_tstem(1,2,srad);
3325 %%draw_flatserif(1,2,srad);
3326 draw_roundserif(2,1,srad);
3327 draw pth1;
3328 ductus:=false;
3329 penlabels(1,2,3,4,5,6,100);
3330 endchar; % end "I"
3331
3332
3333 % \end{macrocode}
3334 % \end{routine}
3335 %
3336 % \begin{routine}{J}
3337 % The letter `J'. This letter was not in the script, it being a later invention.
3338 % \begin{macrocode}
3339 cmchar "RTND letter J";
3340 beginchar("J", cap_sb#+caprat*hstretch*(thick#+2jut#),
3341 caprat*x_height#, desc_depth#);
3342 adjust_fit(0,0);
3343 pcshiftx := cap_sb;
3344 numeric n[];
3345 path pth[];
3346 pickup quill;
3347 %% stem
3348 rt x1 = w-pcshiftx; top y1 = h;
3349 x2=x1; y2=-1/2d;
3350 %% bottom hook
3351 lft x3 = 0; bot y3 = -d;
3352 pth1 := z1--z2..z3{-pdir};
3353 % bar
3354 lft x6 = pcshiftx; top y6 = h;
3355 x8 = x1; y8 = y1;
3356 pth2 := z6{pdir}..{pdir}z8;
3357 %%ductus:=true;
3358 if ductus:
3359 pickup stylus;
3360 fi
3361 draw pth1; % stem
3362 draw pth2; % bar
3363 ductus:=false;
3364 penlabels(1,2,3,6,7,8,100);
3365 endchar; % end "J"
3366
3367 % \end{macrocode}
3368 % \end{routine}
3369 %
3370 % \begin{routine}{K}
3371 % The letter `K'.
3372 % \begin{macrocode}
3373 cmchar "RTND letter K";
3374 beginchar("K", 2cap_sb#+caprat*hstretch*(7/8x_height#+jut#),
3375 caprat*x_height#, 0);
3376 adjust_fit(0,0);
3377 pcshiftx := cap_sb;
3378 path pth[];
3379 numeric n[];
3380 pickup quill;
3381 %% stem
3382 n1 = h; % x-height
3383 lft x1=lft x2=pcshiftx+2jut;
3384 top y1=h; bot y2=0;
3385 % bar
3386 lft x26 = pcshiftx; top y26 = h;
3387 x28 = x1; y28 = y1;
3388 pth22 := z26{pdir}..{pdir}z28;
3389 %% top arm
3390 %%z3=(x1,1/2n1);
3391 x3 = x1; top y3 = 1/2n1;
3392 rt x5=5/8[x1,w-pcshiftx]; top y5=n1;
3393 x4=1/2[x3,x5]; top y4=n1;
3394 pth1 := z3{pdir}..z5{up};
3395 %% lower arm
3396 pth2 := (rt x1,0)--(rt x1,h);
3397 z13 = pth1 intersectionpoint pth2;
3398 pickup threequarterquill;
3399 lft x14 = x13; bot y14 = y13;
3400 rt x7=w-pcshiftx; bot y7=0;
3401 pickup quill;
3402 %%ductus:=true;
3403 if ductus:
3404 pickup stylus;
3405 fi
3406 draw_tstem(1,2,srad); % stem
3407 %draw_clubserif(1,2,0.5);
3408 draw_roundserif(2,1,srad);
3409 draw pth22;
3410 draw pth1; % upper arm
3411 pickup threequarterquill;
3412 draw z14{-ppdir}..z7{right}; % lower arm
3413 pickup quill;
3414 ductus:=false;
3415 penlabels(1,2,3,4,5,6,7,8,9,13,14,100);
3416 endchar; % end "K"
3417
3418 % \end{macrocode}
3419 % \end{routine}
3420 %
3421 % \begin{routine}{L}
3422 % The letter `L'.
3423 % \begin{macrocode}
3424 cmchar "RTND letter L";
3425 beginchar("L", 2cap_sb#+caprat*hstretch*(thick#+5jut#),
3426 caprat*x_height#, 0);
3427 adjust_fit(0,0);
3428 pcshiftx := cap_sb;
3429 path pth[];
3430 pickup quill;
3431 % stem
3432 lft x1= pcshiftx + 3jut; top y1=h;
3433 lft x2= pcshiftx; bot y2 =0;
3434 pth1 := z1{down}..{-pdir}z2;
3435 % bar
3436 lft x6 = pcshiftx; top y6 = h;
3437 x8 = x1; y8 = y1;
3438 pth2 := z6{pdir}..{pdir}z8;
3439 % foot
3440 x3 = x2; y3 = y2;
3441 rt x5 = w - pcshiftx; bot y5 = 0;
3442 pth3 := z3{pdir}..{pdir}z5;
3443 %%ductus:=true;
3444 if ductus:
3445 pickup stylus;
3446 fi
3447 draw pth1; % stem
3448 draw pth2; % bar
3449 draw pth3; % foot
3450 ductus:=false;
3451 penlabels(1,2,3,4,5,6,7,8,9,100);
3452 endchar; % end "L"
3453
3454 % \end{macrocode}
3455 % \end{routine}
3456 %
3457 % \begin{routine}{M}
3458 % The letter `M'.
3459 % \begin{macrocode}
3460 cmchar "RTND letter M";
3461 beginchar("M", 2cap_sb#+caprat*hstretch*(x_height#+2jut#),
3462 caprat*x_height#, 0);
3463 adjust_fit(0,0);
3464 pcshiftx := cap_sb;
3465 numeric n[];
3466 path pth[];
3467 pickup quill;
3468 %% left stem
3469 lft x1=pcshiftx+jut; top y1=h;
3470 x2'=x1; bot y2'=0;
3471 %% start of bowl
3472 x13=x1; y13=3/4h;
3473 %% bottom of left, right and middle stems
3474 rt x6' = w -pcshiftx - jut; y6'=y2';
3475 z4 = 1/2[z2',z6'];
3476 x6 = 1/2[x4,x6']; bot y6 = -thick;
3477 rt x2 = lft x4; bot y2 = 0;
3478 %% top of middle and right stems
3479 x3=x4; y3=y1;
3480 x5=x6'; y5=y13;
3481 %% top of bowls
3482 x14=2/3[x13,x3]; top y14 = h;
3483 x33=x4; y33=y13;
3484 x34=2/3[x33,x5]; y34 = y14;
3485 %%ductus:=true;
3486 if ductus:
3487 pickup stylus;
3488 fi
3489 %draw_tstem(1,2,srad); % left half
3490 %draw_flatserif(1,2,srad);
3491 %draw_roundserif(2,1,srad);
3492 %draw z13{pdir}..z14{right}..z33{down}--z4; % middle
3493 draw z2..z13..{right}z14..z33{down}--z4;
3494 draw_roundserif(4,3,srad);
3495 %%draw z33{pdir}..z34{right}..z5{down}--z6;
3496 %%draw_roundserif(6,5,srad);
3497 draw z33{pdir}..z34{right}..z5{down}..{-pdir}z6; % rightmost
3498 ductus:=false;
3499 penlabels(1,2,2',3,4,5,6,6',7,8,9,13,14,33,34,100);
3500 endchar; % end "M"
3501
3502 % \end{macrocode}
3503 % \end{routine}
3504 %
3505 % \begin{routine}{N}
3506 % The letter `N'.
3507 % \begin{macrocode}
3508 cmchar "RTND letter N";
3509 beginchar("N", 2cap_sb#+caprat*hstretch*(5/8x_height#+2jut#),
3510 caprat*x_height#, 0);
3511 adjust_fit(0,0);
3512 pcshiftx := cap_sb;
3513 pickup quill;
3514 %% left stem
3515 lft x1=pcshiftx+jut; top y1=h;
3516 x2=x1; bot y2=0;
3517 % start of bowl
3518 x13=x1; y13=3/4h;
3519 %% right stem
3520 rt x4 = w-pcshiftx-jut; y4=y2;
3521 x3 = x4; y3 = y13;
3522 % top of bowl
3523 x14 = 2/3[x13,x3]; top y14 = h;
3524 %%ductus:=true;
3525 if ductus:
3526 pickup stylus;
3527 fi
3528 draw_tstem(1,2,srad); % left stem
3529 draw_flatserif(1,2,srad);
3530 draw_roundserif(2,1,srad);
3531 draw z13{pdir}..z14{right}..z3{down}--z4;
3532 draw_roundserif(4,3,srad);
3533 ductus:=false;
3534 penlabels(1,2,3,4,5,6,13,14,100);
3535 endchar; % end "N"
3536
3537 % \end{macrocode}
3538 % \end{routine}
3539 %
3540 % \begin{routine}{O}
3541 % The letter `O'.
3542 % \begin{macrocode}
3543 cmchar "RTND letter O";
3544 beginchar("O", 2cap_sb#+caprat*hstretch*(7/8x_height#),
3545 caprat*x_height#, 0);
3546 adjust_fit(0,0);
3547 pcshiftx := cap_sb;
3548 path pth[];
3549 pickup quill;
3550 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
3551 x2=x4=w/2; top y2=h+o; bot y4=-o;
3552 pth1 := z2..z3..z4{left}.. tension 0.8 ..{up}z1..cycle;
3553 %ductus:=true;
3554 if ductus:
3555 pickup stylus;
3556 fi
3557 draw pth1;
3558 ductus:=false;
3559 penlabels(1,2,3,4,5,100);
3560 endchar; % end "O"
3561
3562 % \end{macrocode}
3563 % \end{routine}
3564 %
3565 % \begin{routine}{P}
3566 % The letter `P'.
3567 % \begin{macrocode}
3568 cmchar "RTND letter P";
3569 beginchar("P", 2cap_sb#+caprat*hstretch*(3/4x_height#+jut#),
3570 caprat*x_height#, 0);
3571 adjust_fit(0,0);
3572 pcshiftx := cap_sb;
3573 numeric n[];
3574 path pth[];
3575 pickup quill;
3576 %% stem
3577 lft x1=lft x2=pcshiftx+2jut;
3578 top y1=h; bot y2=0;
3579 %% bowl
3580 rt x5 = w-pcshiftx;
3581 x4=1/2[x1,x5]; top y4 = h;
3582 x6=x4; bot y6 = 5/16h;
3583 y5=1/2[y4,y6];
3584 x7 = x1; y7 = 1/2[y6,y5];
3585 lft x3 = pcshiftx; top y3 = y1;
3586 pth1 := z3{pdir}..z4..{down}z5..{left}z6..z7;
3587 %%ductus:=true;
3588 if ductus:
3589 pickup stylus;
3590 fi
3591 draw z1--z2;
3592 draw_roundserif(2,1,srad)
3593 draw pth1;
3594 ductus:=false;
3595 penlabels(1,2,3,4,5,6,7,8,100);
3596 endchar; % end "P"
3597
3598 % \end{macrocode}
3599 % \end{routine}
3600 %
3601 % \begin{routine}{Q}
3602 % The letter `Q'.
3603 % \begin{macrocode}
3604 cmchar "RTND letter Q";
3605 beginchar("Q", 2cap_sb#+caprat*hstretch*(7/8x_height#+jut#),
3606 caprat*x_height#, 0);
3607 adjust_fit(0,0);
3608 pcshiftx := cap_sb;
3609 numeric n[];
3610 path pth[];
3611 pickup quill;
3612 lft x1=pcshiftx; rt x3=w-pcshiftx-jut; y1=y3=h/2;
3613 x2=x4=w/2; top y2=h+o; bot y4=-o;
3614 pth1 := z2..z3..z4{left}.. tension 0.8 ..{up}z1..cycle;
3615 % foot
3616 z5 = point 1.5 of pth1;
3617 rt x7 = w - pcshiftx; bot y7 = 0;
3618 pth2 := z5..{right}z7;
3619 %ductus:=true;
3620 if ductus:
3621 pickup stylus;
3622 fi
3623 draw pth1;
3624 draw pth2;
3625 ductus:=false;
3626 penlabels(1,2,3,4,5,6,7,100);
3627 endchar; % end "Q"
3628
3629 % \end{macrocode}
3630 % \end{routine}
3631 %
3632 % \begin{routine}{R}
3633 % The letter `R'.
3634 % \begin{macrocode}
3635 cmchar "RTND letter R";
3636 beginchar("R", 2cap_sb#+caprat*hstretch*(3/4x_height#+jut#),
3637 caprat*x_height#, 0);
3638 adjust_fit(0,0);
3639 pcshiftx := cap_sb;
3640 numeric n[];
3641 path pth[];
3642 pickup quill;
3643 %% stem
3644 lft x1=lft x2=pcshiftx+2jut;
3645 top y1=h; bot y2=0;
3646 %% bowl
3647 rt x5 = w-pcshiftx;
3648 x4=1/2[x1,x5]; top y4 = h;
3649 x6=x4; bot y6 = 6/16h;
3650 y5=1/2[y4,y6];
3651 x7 = x1;
3652 %y7 = 1/8[y6,y5];
3653 y7 = y6;
3654 lft x3 = pcshiftx; top y3 = y1;
3655 pth1 := z3{pdir}..z4..{down}z5..{left}z6..z7;
3656 %% leg
3657 x16 = x6; y16 = y6;
3658 rt x18 = w - pcshiftx; bot y18 = 0;
3659 pth2 := z16..{right}z18;
3660 %%ductus:=true;
3661 if ductus:
3662 pickup stylus;
3663 fi
3664 draw z1--z2;
3665 draw_roundserif(2,1,srad)
3666 draw pth1;
3667 draw pth2;
3668 ductus:=false;
3669 penlabels(1,2,3,4,5,6,7,8,100);
3670 endchar; % end "R"
3671
3672 % \end{macrocode}
3673 % \end{routine}
3674 %
3675 % \begin{routine}{S}
3676 % The letter `S'.
3677 % \begin{macrocode}
3678
3679 cmchar "RTND letter S";
3680 beginchar("S", 2cap_sb#+caprat*hstretch*(7/8x_height#),
3681 caprat*x_height#, 0);
3682 adjust_fit(0,0);
3683 numeric n[];
3684 pcshiftx := cap_sb;
3685 pickup quill;
3686
3687 % center
3688 z50=(1/2w, 1/2h);
3689 x60 = w-pcshiftx; z60 = z50 shifted (whatever*pdir);
3690 x40 = pcshiftx; z40 = z50 shifted (whatever*pdir);
3691 rt x5 = x50; top y5 = y50;
3692 z54 = (lft x5, bot y5);
3693 lft x6 = x50; bot y6 = y50;
3694 z56 = (rt x6, top y6);
3695
3696 % top bowl
3697 z1 = 1/2[z56,z60];
3698 x3 = 1/2[x5,x1]; top y3 = h;
3699
3700 % bottom bowl
3701 z10 = 1/2[z54,z40];
3702 %x8 = 1/4[x6,x10];
3703 x8 = x56;
3704 bot y8 = 0;
3705
3706 %%ductus:=true;
3707 if ductus:
3708 pickup stylus;
3709 fi
3710 % top bowl
3711 draw z5{ppdir}..z3..z1{-ppdir};
3712
3713 % bottom bowl
3714 draw z6..z8{left}..z10{ppdir};
3715 pickup stylus;
3716 draw z60--z10;
3717 ductus:=false;
3718 penlabels(1,2,3,4,5,6,7,8,9,10,11,17,20,26,27,28,40,50,54,56,60,100);
3719 endchar; % end "S"
3720
3721
3722 % \end{macrocode}
3723 % \end{routine}
3724 %
3725 % \begin{routine}{T}
3726 % The letter `T'.
3727 % \begin{macrocode}
3728 cmchar "RTND letter T";
3729 beginchar("T", 2cap_sb#+caprat*hstretch*(x_height#),
3730 caprat*x_height#, 0);
3731 adjust_fit(0,0);
3732 pcshiftx := cap_sb;
3733 numeric n[];
3734 pickup quill;
3735 %% bar
3736 top y3=h; n3 := h - top y3;
3737 lft x1 = pcshiftx; rt x2=w-pcshiftx;
3738 %%top y1 = y3-n3; bot y2=y3+n3;
3739 y1 = y3-n3; y2=y3;
3740 n1 := w; % width of bowl
3741 n2 := h; % height of bowl
3742 x3=1/2[x1,x2];
3743 lft x4 = pcshiftx + 1/8n1; y4 = 1/2h;
3744 x5=x3; bot y5 = 0;
3745 rt x6 = pcshiftx + 3/4n1; top y6 = 1/4h;
3746 %%ductus:=true;
3747 if ductus:
3748 pickup stylus;
3749 fi
3750 draw z1{pdir}..z3..z2{pdir}; % bar
3751 %draw z3..z4{down}..z5{right}..z6{pdir};
3752 draw z3--z5;
3753 draw_roundserif(5,3,srad);
3754 ductus:=false;
3755 penlabels(1,2,3,4,5,6,11,12,100);
3756 endchar; % end "T"
3757
3758 % \end{macrocode}
3759 % \end{routine}
3760 %
3761 % \begin{routine}{U}
3762 % The letter `U'.
3763 % \begin{macrocode}
3764 cmchar "RTND letter U";
3765 beginchar("U", 2cap_sb#+caprat*hstretch*(5/8x_height#+2jut#),
3766 caprat*x_height#, 0);
3767 adjust_fit(0,0);
3768 pcshiftx := cap_sb;
3769 numeric n[];
3770 pickup quill;
3771 %% left stem
3772 lft x1 = pcshiftx + jut; top y1 = h;
3773 % start of bowl
3774 x13=x1; y13=1/3h;
3775 % right stem
3776 rt x3=w-pcshiftx-jut; y3=y1;
3777 x4=x3; bot y4=0;
3778 z33=1/4[z4,z3]; % start of bowl
3779 % middle of bowl
3780 x14=1/3[x1,x3]; bot y14=0;
3781 %%ductus:=true;
3782 if ductus:
3783 pickup stylus;
3784 fi
3785 draw z1--z13{down}..z14{right}..z33{pdir};
3786 draw_flatserif(1,13,srad);
3787 draw_tstem(3,4,srad); % right stem
3788 draw_flatserif(3,4,srad);
3789 draw_roundserif(4,3,srad);
3790 ductus:=false;
3791 penlabels(1,2,3,4,5,6,7,8,9,11,13,14,16,33,100);
3792 endchar; % end "U"
3793
3794 % \end{macrocode}
3795 % \end{routine}
3796 %
3797 % \begin{routine}{V}
3798 % The letter `V'.
3799 % \begin{macrocode}
3800 cmchar "RTND letter V";
3801 beginchar("V", 2cap_sb#+caprat*hstretch*(3/4x_height#+jut#),
3802 caprat*x_height#, 0);
3803 adjust_fit(0,0);
3804 pcshiftx := cap_sb;
3805 pickup quill;
3806 %% left stem
3807 lft x1 = pcshiftx + jut; top y1 = h;
3808 % start of bowl
3809 x13=x1; y13=1/3h;
3810 % right stem
3811 rt x3=w-pcshiftx-jut; y3=y1;
3812 x4=x3; bot y4=0;
3813 z33=1/4[z4,z3]; % start of bowl
3814 % middle of bowl
3815 x14=1/3[x1,x3]; bot y14=0;
3816 rt x23=w-pcshiftx; y23=3/4h;
3817 lft x26=x14; top y26=h;
3818 %%ductus:=true;
3819 if ductus:
3820 pickup stylus;
3821 fi
3822 draw z1--z13{down}..z14{right}; % left stem
3823 draw_flatserif(1,13,srad);
3824 draw z14{pdir}..z23{up}..z26;
3825
3826 ductus:=false;
3827 penlabels(1,2,3,4,5,11,13,14,23,26,100);
3828 endchar; % end "V"
3829
3830 % \end{macrocode}
3831 % \end{routine}
3832 %
3833 % \begin{routine}{W}
3834 % The letter `W'. This is a modern version as the font did not have a W.
3835 % \begin{macrocode}
3836 cmchar "RTND letter W";
3837 beginchar("W", 2cap_sb#+caprat*hstretch*(x_height#+2jut#),
3838 caprat*x_height#, 0);
3839 adjust_fit(0,0);
3840 pcshiftx := cap_sb;
3841 pickup quill;
3842 %% left stem
3843 lft x1 = pcshiftx + jut; top y1 = h;
3844 % start of bowl
3845 x13=x1; y13=1/3h;
3846 % right stem
3847 rt x5=w-pcshiftx-jut; y5=y1;
3848 x6=x5; bot y6=0;
3849 z53=1/4[z6,z5]; % start of bowl
3850 % middle stem
3851 z3 = 1/2[z1,z5];
3852 z33=(x3,y13);
3853 % middle of bowl
3854 x14=1/3[x1,x3]; bot y14=0;
3855 % middle of right bowl
3856 x34=1/3[x3,x5]; y34=y14;
3857 %%ductus:=true;
3858 if ductus:
3859 pickup stylus;
3860 fi
3861 draw z1--z13{down}..z14{right}..z33{pdir}; % left
3862 draw_flatserif(1,13,srad);
3863 draw z3--z33{down}..z34{right}..z53{pdir}; % middle
3864 draw_flatserif(3,33,srad);
3865 draw_tstem(5,6,srad); % right stem
3866 draw_flatserif(5,6,srad);
3867 draw_roundserif(6,5,srad);
3868 ductus:=false;
3869 penlabels(1,2,3,4,5,6,7,8,9,11,13,14,33,34,53,16,100);
3870 endchar; % end "W"
3871
3872 % \end{macrocode}
3873 % \end{routine}
3874 %
3875 % \begin{routine}{X}
3876 % The letter `X'.
3877 % \begin{macrocode}
3878 cmchar "RTND letter X";
3879 beginchar("X", 2cap_sb#+caprat*hstretch*(x_height#),
3880 caprat*x_height#, 0);
3881 adjust_fit(0,0);
3882 path pth[];
3883 numeric n[];
3884 pcshiftx := cap_sb;
3885 pickup quill;
3886 n1 := w-2pcshiftx; % total width
3887 n2 := thick; % triangle side
3888 %% diag top left to bottom right
3889 lft x1=pcshiftx; bot y1=2/3h;
3890 x2=pcshiftx+1/7n1; top y2=h;
3891 x5=pcshiftx+11/14n1; bot y5=-1/4d;
3892 rt x6=pcshiftx+n1; top y6=1/6h;
3893 z25 = 1/3[z2,z5];
3894 pth1 := z2{right}..z5{right};
3895 z251 = point 1/3 of pth1;
3896 z252 = point 2/3 of pth1;
3897 %% diag bottom left to top right
3898 lft x10 = -w + 2pcshiftx; bot y10=-d;
3899 x50=x5; top y50=h;
3900 rt x60 = w -pcshiftx; bot y60=2/3h;
3901 x40=pcshiftx+8/14n1; y40=h;
3902
3903 x150=x2; bot y150 = 0;
3904 lft x160 = pcshiftx; top y160=1/3h;
3905 %%ductus:=true;
3906 if ductus:
3907 pickup stylus;
3908 fi
3909 draw z1..z2{right}..z5{right}..z6; % top left to bottom right
3910 %%draw z10{1/2pdir}..z25..z50{right}..z60; % bottom left to top right
3911 draw z251..z50{right}..z60; % middle to top right
3912 draw z252..z150{left}..z160; % middle to bottom left
3913 ductus:=false;
3914 penlabels(1,2,3,4,5,6,7,8,10,25,251,252,40,50,150,60,160,100);
3915 endchar; % end "X"
3916
3917 % \end{macrocode}
3918 % \end{routine}
3919 %
3920 % \begin{routine}{Y}
3921 % The letter `Y'. Modern.
3922 % \begin{macrocode}
3923 cmchar "RTND letter Y";
3924 beginchar("Y", 2cap_sb#+caprat*hstretch*(7/8x_height#),
3925 caprat*x_height#, desc_depth#);
3926 adjust_fit(0,0);
3927 pcshiftx := cap_sb;
3928 path pth[];
3929 numeric n[];
3930 pickup quill;
3931 %% left stem top
3932 lft x1 = pcshiftx + jut; top y1 = h;
3933 bot y3 = 0;
3934 %% right stem
3935 rt x5=w-pcshiftx; top y5 = h;
3936 lft x9=-1/2w; bot y9 = -d;
3937 pth1 := z9{right}..z5{up};
3938 pth2 := (0,y3)--(w,y3);
3939 z99 = pth1 intersectionpoint pth2;
3940 x3 = x99;
3941 %%ductus:=true;
3942 if ductus:
3943 pickup stylus;
3944 fi
3945 draw z1{down}..z3; % left stem
3946 draw_flatserif(1,3,srad);
3947 draw pth1; % right stem
3948 draw_flatserif(5,3,srad);
3949 ductus:=false;
3950 penlabels(1,2,3,4,5,6,7,8,9,10,100);
3951 endchar; % end "Y"
3952
3953 % \end{macrocode}
3954 % \end{routine}
3955 %
3956 %
3957 % \begin{routine}{Z}
3958 % The letter `Z'.
3959 % \begin{macrocode}
3960 cmchar "RTND letter Z";
3961 beginchar("Z", 2cap_sb#+caprat*hstretch*(7/8x_height#),
3962 caprat*x_height#, 0);
3963 adjust_fit(0,0);
3964 numeric n[];
3965 path pth[];
3966 pcshiftx := cap_sb;
3967 pickup quill;
3968 %% top bar ends
3969 top y12 = h;
3970 n1 := h - y12;
3971 lft x1 = pcshiftx; rt x2 = w-pcshiftx;
3972 %%y1 = y12-n1; y2=y12+n1;
3973 top y1 = y12-n1; y2=y12;
3974 x12 = 1/2[x1,x2];
3975 pth1 := z1{pdir}..z12{right}..z2{pdir};
3976 %% bottom bar ends
3977 bot y34 = 0;
3978 x3=x1; x4=x2;
3979 %%y3=y34-n1; y4=y34+n1;
3980 y3=y34-n1; bot y4=y34;
3981 x34 = 1/2[x3,x4];
3982 pth2 := z3{pdir}..z34{right}..z4{pdir};
3983 %% diagonal
3984 z5=z3;
3985 %pth3 := z5--(3/4w,h+jut);
3986 %z6 = pth3 intersectionpoint pth1;
3987 z6 = z2;
3988 %%ductus:=true;
3989 if ductus:
3990 pickup stylus;
3991 fi
3992 draw pth1; draw pth2; % bars
3993 draw z5--z6;
3994 ductus:=false;
3995 penlabels(1,2,3,4,5,6,12,34,10o,10i,20o,20i,100);
3996 endchar; % end "Z"
3997
3998 % \end{macrocode}
3999 % \end{routine}
4000 %
4001 %
4002 %
4003 % The end of this file
4004 % \begin{macrocode}
4005 %</maj>
4006 % \end{macrocode}
4007 %
4008 %
4009 %
4010 % \subsection{The punctuation file}
4011 %
4012 % The main punctuation marks are defined in this file.
4013 %
4014 % \begin{macrocode}
4015 %<*punct>
4016 % RTNDPUNCT.MF This file contains punctuation marks
4017
4018 % \end{macrocode}
4019 %
4020 %
4021 % \begin{routine}{!}
4022 % The `!' character, which had not been invented at this time.
4023 % \begin{macrocode}
4024
4025 cmchar "Exclamation mark";
4026 beginchar("!", 2sb#+hstretch*(thick#+trijut#),
4027 asc_height#, 0);
4028 adjust_fit(0,0);
4029 pcshiftx := sb;
4030 pickup quill;
4031 x1=w/2; top y1 = h;
4032 z3=(x1, 1/2dot_size);
4033 z2=(x1, y3+3/2dot_size);
4034 draw z1--z2;
4035 draw_pdot(3,dot_size);
4036 penlabels(1,2,3);
4037
4038 endchar; % end of "!"
4039
4040 % \end{macrocode}
4041 % \end{routine}
4042 %
4043 % \begin{routine}{?}
4044 % The `?' character, which had not been invented at this time.
4045 % \begin{macrocode}
4046
4047 cmchar "Question mark";
4048 beginchar("?", 2sb#+hstretch*(3/4x_height#),
4049 asc_height#, 0);
4050 adjust_fit(0,0);
4051 pcshiftx := sb;
4052 numeric n[];
4053 path pth[];
4054 pickup quill;
4055 n1 := w-2pcshiftx; % actual character width
4056 n2 := 1/3h; % height of top bowl
4057 n3 := n2; % height of bottom bowl
4058 z5=(1/2w,1/2dot_size);
4059 x4 = x5; y4=y5+3/2dot_size;
4060 lft x1 = pcshiftx; y1 = 3/4h;
4061 x2 = 1/2w; top y2 = h;
4062 rt x3 = w-pcshiftx; y3 = 2/3h;
4063
4064 %%ductus:= true;
4065 if ductus:
4066 pickup stylus;
4067 fi
4068 draw z1..z2{right}..z3{down}..z4{down};
4069 draw_pdot(5, dot_size);
4070 penlabels(1,2,3,4,5);
4071 endchar; % end of "?"
4072
4073 % \end{macrocode}
4074 % \end{routine}
4075 %
4076 % \begin{routine}{,}
4077 % The `,' character.
4078 % \begin{macrocode}
4079
4080 cmchar "Comma";
4081 beginchar(",",2sb#+hstretch*(comma_width#+dot_size#),x_height#,0);
4082 adjust_fit(0,0);
4083 pcshiftx:=sb;
4084 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=1/2dot_size;
4085 draw_pcomma(1,dot_size,comma_width);
4086 penlabels(1);
4087 endchar; % end of ","
4088
4089 % \end{macrocode}
4090 % \end{routine}
4091 %
4092 % \begin{routine}{.}
4093 % The `.' character.
4094 % \begin{macrocode}
4095
4096 cmchar "Period";
4097 beginchar(".",2sb#+hstretch*(dot_size#),x_height#,0);
4098 pcshiftx:=sb;
4099 z1=(w/2, 1/2dot_size);
4100 draw_pdot(1,dot_size);
4101 penlabels(1);
4102 endchar; % end of "."
4103
4104 % \end{macrocode}
4105 % \end{routine}
4106 %
4107 %
4108 % \begin{routine}{:}
4109 % The `:' character.
4110 % \begin{macrocode}
4111
4112 cmchar "Colon";
4113 beginchar(":",2sb#+hstretch*(dot_size#),x_height#,0);
4114 pcshiftx:=sb;
4115 x1=x2=w/2; y1=3/4h; y2=1/4h;
4116 draw_pdot(1,dot_size);
4117 draw_pdot(2,dot_size);
4118 penlabels(1,2);
4119 endchar; % end ":"
4120
4121 % \end{macrocode}
4122 % \end{routine}
4123 %
4124 % \begin{routine}{;}
4125 % The `;' character.
4126 % \begin{macrocode}
4127
4128 cmchar "Semicolon";
4129 beginchar(";",2sb#+hstretch*(comma_width#+dot_size#),x_height#,0);
4130 adjust_fit(0,0);
4131 pcshiftx:=sb;
4132 x1=x2=w-pcshiftx-(0.5hstretch*dot_size); y1=3/4h; y2=1/2dot_size;
4133 draw_pdot(1,dot_size);
4134 draw_pcomma(2,dot_size,comma_width);
4135 penlabels(1,2);
4136 endchar; % end of ";"
4137
4138 % \end{macrocode}
4139 % \end{routine}
4140 %
4141 % \begin{routine}{'}
4142 % The `'' character.
4143 % \begin{macrocode}
4144
4145 cmchar "Apostrophe";
4146 beginchar("'",2sb#+hstretch*(comma_width#+dot_size#),4/3x_height#,0);
4147 adjust_fit(0,0);
4148 pcshiftx:=sb;
4149 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=h;
4150 draw_pcomma(1,dot_size,comma_width);
4151 penlabels(1);
4152 endchar; % end of "'"
4153
4154 % \end{macrocode}
4155 % \end{routine}
4156 %
4157 % \begin{routine}{`}
4158 % The ``' character.
4159 % \begin{macrocode}
4160
4161 cmchar "Reverse apostrophe";
4162 beginchar("`",2sb#+hstretch*(comma_width#+dot_size#),4/3x_height#,0);
4163 adjust_fit(0,0);
4164 pcshiftx:=sb;
4165 x1=pcshiftx+(0.5hstretch*dot_size); y1=h;
4166 draw_plq(1,dot_size,comma_width);
4167 penlabels(1);
4168 endchar; % end of "`"
4169
4170 % \end{macrocode}
4171 % \end{routine}
4172 %
4173 % The end of this file.
4174 % \begin{macrocode}
4175 %</punct>
4176 % \end{macrocode}
4177 %
4178 %
4179 % \subsection{The ligatures and dashes file}
4180 %
4181 % The ligatured letters, punctuation marks and dashes are defined in this file.
4182 % \begin{macrocode}
4183 %<*lig>
4184 % RTNDLIG.MF Uncial ligatured letters, punctation and dashes
4185
4186 % \end{macrocode}
4187 % First the ligtables.
4188 % \begin{macrocode}
4189
4190 ligtable "`": "`"=:oct"134";
4191 ligtable "'": "'"=:oct"042"; %% , "?" kern 2u#, "!" kern 2u#;
4192
4193 ligtable "-": "-"=:oct"173";
4194 ligtable oct"173": "-"=:oct"174";
4195
4196 %%%%ligtable "c": "t"=:oct"014";
4197 %%%%ligtable "s": "t"=:oct"015";
4198
4199 % \end{macrocode}
4200 %
4201 %
4202 % \begin{routine}{''}
4203 % The `''' ligature.
4204 % \begin{macrocode}
4205
4206 cmchar "Closing quotes";
4207 beginchar(oct"042",2sb#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
4208 adjust_fit(0,0);
4209 pcshiftx:=sb;
4210 x1=w-pcshiftx-(0.5hstretch*dot_size); y1=y2=h;
4211 x2=x1-(2hstretch*dot_size);
4212 draw_pcomma(1,dot_size,comma_width); % right
4213 draw_pcomma(2,dot_size,comma_width); % left
4214 penlabels(1,2);
4215 endchar; % end of "''"
4216
4217 % \end{macrocode}
4218 % \end{routine}
4219 %
4220 % \begin{routine}{``}
4221 % The ```' ligature.
4222 % \begin{macrocode}
4223
4224 cmchar "Opening quotes";
4225 beginchar(oct"134",2sb#+hstretch*(comma_width#+3dot_size#),4/3x_height#,0);
4226 adjust_fit(0,0);
4227 pcshiftx:=sb;
4228 x1=pcshiftx+(0.5hstretch*dot_size); y1=y2=h;
4229 x2=x1+(2hstretch*dot_size);
4230 draw_plq(1,dot_size,comma_width); % left
4231 draw_plq(2,dot_size,comma_width); % right
4232 penlabels(1,2);
4233 endchar; % end of "``"
4234
4235 % \end{macrocode}
4236 % \end{routine}
4237 %
4238 % \begin{routine}{-}
4239 % The `-' (hyphen) character.
4240 % \begin{macrocode}
4241
4242 cmchar "Hyphen";
4243 beginchar("-",sb#+hstretch*(0.8x_height#),x_height#,0);
4244 adjust_fit(0,0);
4245 pcshiftx:=sb/2;
4246 %%numeric alpha; alpha:=w/8;
4247 %%pickup quill;
4248 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
4249 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
4250 %%x12=rt x2; y12=bot y1+0.5thin;
4251 %%draw_triangle(11,alpha);
4252 %%draw_rutriangle(12,alpha);
4253 pickup halfquill;
4254 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
4255 draw z21--z22;
4256 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
4257 penlabels(1,2);
4258 endchar; % end of "-"
4259
4260 % \end{macrocode}
4261 % \end{routine}
4262 %
4263 % \begin{routine}{--}
4264 % The `--' (en-dash) ligature.
4265 % \begin{macrocode}
4266
4267 cmchar "En dash";
4268 beginchar(oct"173",sb#+hstretch*(x_height#),x_height#,0);
4269 adjust_fit(0,0);
4270 pcshiftx:=sb/2;
4271 %%numeric alpha; alpha:=w/8;
4272 %%pickup quill;
4273 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
4274 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
4275 %%x12=rt x2; y12=bot y1+0.5thin;
4276 %%draw_triangle(11,alpha);
4277 %%draw_rutriangle(12,alpha);
4278 pickup halfquill;
4279 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
4280 draw z21--z22;
4281 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
4282 penlabels(1,2);
4283 endchar; % end of "--"
4284
4285 % \end{macrocode}
4286 % \end{routine}
4287 %
4288 % \begin{routine}{---}
4289 % The `---' (em dash) ligature. The em dash is twice the width of the en dash.
4290 % \begin{macrocode}
4291
4292 cmchar "Em dash";
4293 beginchar(oct"174",sb#+hstretch*(2x_height#),x_height#,0);
4294 adjust_fit(0,0);
4295 pcshiftx:=sb/2;
4296 %%numeric alpha; alpha:=w/8;
4297 %%pickup quill;
4298 %%lft x1 = pcshiftx; rt x2=w-pcshiftx; y1=y2=h/2;
4299 %%x11=lft x1+alpha/2; y11=top y1-0.5thin;
4300 %%x12=rt x2; y12=bot y1+0.5thin;
4301 %%draw_triangle(11,alpha);
4302 %%draw_rutriangle(12,alpha);
4303 pickup halfquill;
4304 lft x21=pcshiftx+jut; rt x22=w-pcshiftx-jut; y21=y22=1/2h;
4305 draw z21--z22;
4306 draw_roundserif(21,22,srad); draw_flatserif(22,21,srad);
4307 penlabels(1,2);
4308 endchar; % end of "---"
4309
4310 % \end{macrocode}
4311 % \end{routine}
4312 %
4313 %
4314 %
4315 % \begin{routine}{&}
4316 % The ampersand (which is really an `et' ligature).
4317 % \begin{macrocode}
4318
4319 cmchar "RTND ampersand";
4320 beginchar("&", 2sb#+hstretch*(5/4x_height#+2jut#), asc_height#, 0);
4321 adjust_fit(0,0);
4322 numeric n[];
4323 path pth[];
4324 pcshiftx:=sb;
4325 pickup quill;
4326 %% alpha looking part
4327 n1 := w-2pcshiftx-jut; % actual letter width
4328 n2 := h/ascratio; % x-height
4329 n3 := 16/16n2; % height of alpha
4330 x1 = w-pcshiftx; bot y1 = 0;
4331 x3 = pcshiftx + 12/16n1; y3 = 1/2n3;
4332 lft x5 = pcshiftx; y5 = y3;
4333 x4 = x6 = 1/2[x5,x3];
4334 top y4 = n3; bot y6 = 0;
4335 %rt x8 = w-pcshiftx-jut; top y8=h;
4336 rt x8 = w-pcshiftx-jut;
4337 top y8 = h - thick;
4338 x9 = x8-2jut; x10-x8 = x8-x9;
4339 y9=y10=y8;
4340 %pth1 := z1{left}..z3..z4{left}..z5{down}..z6{right}..z3..z8{up};
4341 pth1 := z1{left}..z3..z4{left}.. tension 0.8 ..z5{down}..
4342 tension 0.8 ..z6{right}..z3..z8{up};
4343 %% loop
4344 z21 = z5;
4345 z25 = point 1.5 of pth1;
4346 x23 = 1/2[x21,x25];
4347 %y23 = 7/8[y4,y8];
4348 top y23 = h;
4349 pth2 := z21{up}..z23{right}..z25{down};
4350 %%ductus:=true;
4351 if ductus:
4352 pickup stylus;
4353 fi
4354 draw pth1; draw z8--z10; % alpha
4355 draw pth2; % loop
4356 ductus:=false;
4357 penlabels(1,2,3,4,5,6,7,8,9,10,16,17,18,19,21,22,23,24,25);
4358 endchar; % end of "&"
4359
4360 % \end{macrocode}
4361 % \end{routine}
4362 %
4363 %
4364 %
4365 % The end of this file.
4366 % \begin{macrocode}
4367 %</lig>
4368 % \end{macrocode}
4369 %
4370 % \subsection{The digits file}
4371 %
4372 % These are arabic digits in the style of the book-hand. They are a
4373 % modern invention.
4374 %
4375 % \begin{macrocode}
4376 %<*dig>
4377 % RTNDDIG.MF Program file for Early Gothic digits
4378 %
4379
4380 % \end{macrocode}
4381 %
4382 %
4383 %
4384 % \begin{routine}{1}
4385 % The digit `1'.
4386 % \begin{macrocode}
4387 cmchar "RTND digit 1";
4388 beginchar("1", 2u#+fig_width#, fig_height#, 0);
4389 adjust_fit(0,0);
4390 pcshiftx := u;
4391 y100 = h/2; x100 = pcshiftx+y100; % square center
4392 pickup quill;
4393 x1=x2=w/2;
4394 y1=h; bot y2=0;
4395 %%ductus:=true;
4396 draw_tstem(1,2,srad);
4397 draw_flatserif(1,2,srad);
4398 %draw_roundserif(2,1,srad);
4399 %draw_flatserif(2,1,srad);
4400 draw_flat_foot(2);
4401 ductus:=false;
4402 proofpcbb(100, y100, y100);
4403 penlabels(1,2,100);
4404 endchar; % end "1"
4405
4406 % \end{macrocode}
4407 % \end{routine}
4408 %
4409 %
4410 % \begin{routine}{2}
4411 % The digit `2'.
4412 % \begin{macrocode}
4413 cmchar "RTND digit 2";
4414 beginchar("2", 2u#+fig_width#, fig_height#, 0);
4415 adjust_fit(0,0);
4416 pcshiftx := u;
4417 pickup quill;
4418 % stem
4419 lft x1=pcshiftx+o; top y1=h-2thin;
4420 x2=1/2w; top y2= h+o;
4421 rt x3=w-pcshiftx-o; y3=3/4h;
4422 % foot
4423 lft x5=pcshiftx; bot y5=0;
4424 rt x6=w-pcshiftx; y6=y5;
4425 %%ductus:=true;
4426 if ductus:
4427 pickup stylus;
4428 fi
4429 draw_wave(5,6,thin); % foot
4430 %draw z1..z2{right}..z3{down}..{-pdir}z5wl; % curve
4431 draw z1..z2{right}.. tension 0.8 ..z3{down}..{-pdir}z5wl; % curve
4432 ductus:=false;
4433 penlabels(1,2,3,4,5,6,100);
4434 endchar; % end "2"
4435
4436 % \end{macrocode}
4437 % \end{routine}
4438 %
4439 %
4440 % \begin{routine}{3}
4441 % The digit `3'.
4442 % \begin{macrocode}
4443 cmchar "RTND digit 3";
4444 beginchar("3", 2u#+fig_width#, fig_height#, 0);
4445 adjust_fit(0,0);
4446 pcshiftx := u;
4447 pickup quill;
4448 % x values
4449 lft x3=pcshiftx; x10=x3;
4450 rt x5=w-pcshiftx; x8=x5-3thin;
4451 x4=0.5[x3,x5];
4452 x9=0.5[x10,x8];
4453 %%lft x6=pcshiftx+3thin; x7=x6;
4454 x6=1/2[x3,x9]; x7=x6;
4455 % y values
4456 bot y3=thin; top y10=h-2thin;
4457 y6=0.5[y3,y10]; y7=y6;
4458 bot y4=-thin; top y9=h+thin;
4459 y5=0.5[y3,y6];
4460 y8=11/12[y7,y10];
4461 %%ductus:=true;
4462 if ductus:
4463 pickup stylus;
4464 fi
4465 %%draw z3..z4{right}..z5{up}...{-pdir}z6; % bottom bowl
4466 %%draw z7{pdir}..z8{up}..z9{left}..z10; % top bowl
4467 draw z3..z4{right}..z5{up}...{left}z6; % bottom bowl
4468 draw z7{right}..z8{up}..z9{left}..z10; % top bowl
4469 ductus:=false;
4470 penlabels(1,2,3,4,5,6,7,8,9,10,100);
4471 endchar; % end "3"
4472
4473 % \end{macrocode}
4474 % \end{routine}
4475 %
4476 % \begin{routine}{4}
4477 % The digit `4'.
4478 % \begin{macrocode}
4479 cmchar "RTND digit 4";
4480 beginchar("4", 2u#+fig_width#, fig_height#, 0);
4481 adjust_fit(0,0);
4482 pcshiftx := u;
4483 pickup quill;
4484 % the stem
4485 x1=x2=w-pcshiftx-jut;
4486 y1=h; bot y2=0;
4487 % the crossbar
4488 lft x3=pcshiftx; y3=0.33h;
4489 rt x4=w-pcshiftx; y4=y3;
4490 %%ductus:=true;
4491 if ductus:
4492 pickup stylus;
4493 fi
4494 draw_tstem(1,2,srad); % main stem
4495 draw_flat_foot(2);
4496 draw_wave(3,4,thin); % crossbar
4497 draw z3wl--z1; % diagonal
4498 ductus:=false;
4499 penlabels(1,2,3,4,100);
4500 endchar; % end "4"
4501
4502 % \end{macrocode}
4503 % \end{routine}
4504 %
4505 %
4506 %
4507 % \begin{routine}{5}
4508 % The digit `5'.
4509 % \begin{macrocode}
4510 cmchar "RTND digit 5";
4511 beginchar("5", 2u#+fig_width#, fig_height#, 0);
4512 adjust_fit(0,0);
4513 pcshiftx := u;
4514 pickup quill;
4515 % for the top
4516 rt x1=w-pcshiftx; top y1=h;
4517 lft x2=pcshiftx; y2=y1;
4518 % the S curve
4519 x3=x2; y3=0.5h+thin;
4520 x4=0.5[x1,x3]; y4=0.5[y3,y5];
4521 rt x5=w-pcshiftx; y5=0.3h;
4522 x6=w/2; bot y6=0;
4523 lft x7=pcshiftx; bot y7=2thin;
4524 %%ductus:=true;
4525 if ductus:
4526 pickup stylus;
4527 fi
4528 draw_wave(2,1,thin); % top squiggle
4529 %draw z3{pdir}..z5{down}..z6{left}..z7; % curve
4530 draw z3{pdir}..z5{down}.. tension 0.8 ..z6{left}..z7; % curve
4531 draw z2wl--z3; % vertical
4532 ductus:=false;
4533 penlabels(1,2,3,4,5,6,7,100);
4534 endchar; % end "5"
4535
4536 % \end{macrocode}
4537 % \end{routine}
4538 %
4539 % \begin{routine}{6}
4540 % The digit `6'.
4541 % \begin{macrocode}
4542 cmchar "RTND digit 6";
4543 beginchar("6", 2u#+fig_width#, fig_height#, 0);
4544 adjust_fit(0,0);
4545 pcshiftx := u;
4546 pickup quill;
4547 rt x1=w-pcshiftx; top y1=h-2thin;
4548 x2=1/2w; top y2= h;
4549 lft x3=pcshiftx; y3=1/2h;
4550 x4=x2; bot y4=0;
4551 rt x5=w-pcshiftx; y5=1/4h;
4552 lft x6=rt x3; bot y6=y3;
4553 %%ductus:=true;
4554 if ductus:
4555 pickup stylus;
4556 fi
4557 %draw z1..z2{left}..z3{down}..z4{right}..z5{up}..{-pdir}z6;
4558 draw z1..z2{left}.. tension 0.8 ..z3{down}.. tension 0.8 ..z4{right}.. tension 0.8
4559 ..z5{up}..{-pdir}z6;
4560 ductus:=false;
4561 penlabels(1,2,3,4,5,6,100);
4562 endchar; % end "6"
4563
4564 % \end{macrocode}
4565 % \end{routine}
4566 %
4567 %
4568 % \begin{routine}{7}
4569 % The digit `7'.
4570 % \begin{macrocode}
4571 cmchar "RTND digit 7";
4572 beginchar("7", 2u#+fig_width#, fig_height#, 0);
4573 adjust_fit(0,0);
4574 pcshiftx := u;
4575 pickup quill;
4576 % top bar
4577 lft x1=pcshiftx;
4578 rt x2=w-pcshiftx;
4579 top y1=top y2=h;
4580 % bowed leg
4581 x4=w/2; bot y4=0;
4582 x3=0.5[x2,x4]-3thin; y3=0.5[y2,y4];
4583 %%ductus:=true;
4584 if ductus:
4585 pickup stylus;
4586 fi
4587 draw_wave(1,2,thin); % top bar
4588 draw z1wr..z3..z4;
4589 draw_flat_foot(4);
4590 ductus:=false;
4591 penlabels(1,2,3,4,5,6,100);
4592 endchar; % end "7"
4593
4594 % \end{macrocode}
4595 % \end{routine}
4596 %
4597 % \begin{routine}{8}
4598 % The digit `8'.
4599 % \begin{macrocode}
4600 cmchar "RTND digit 8";
4601 beginchar("8", 2u#+fig_width#, fig_height#, 0);
4602 adjust_fit(0,0);
4603 pcshiftx := u;
4604 numeric alpha; alpha:=1;
4605 pickup quill;
4606 lft x1=alpha*pcshiftx+o; rt x3=w-alpha*pcshiftx-o; y1=y3=3/4h;
4607 x2=x4=w/2; top y2=h+o; bot y4=-o;
4608 x5=x2; y5=h/2+2o;
4609 lft x11=pcshiftx; rt x13=w-pcshiftx; y11=y13=1/4h;
4610 %%ductus:=true;
4611 if ductus:
4612 pickup stylus;
4613 fi
4614 draw z1.. tension 0.8 ..z2.. tension 0.8 ..z3..z5..
4615 z11.. tension 0.8 ..z4.. tension 0.8 ..z13..z5..cycle;
4616 ductus:=false;
4617 penlabels(1,2,3,4,5,11,13,100);
4618 endchar; % end "8"
4619
4620 % \end{macrocode}
4621 % \end{routine}
4622 %
4623 % \begin{routine}{9}
4624 % The digit `9'.
4625 % \begin{macrocode}
4626 cmchar "RTND digit 9";
4627 beginchar("9", 2u#+fig_width#, fig_height#, 0);
4628 adjust_fit(0,0);
4629 pcshiftx := u;
4630 pickup quill;
4631 lft x1=pcshiftx; bot y1=2thin;
4632 x2=1/2w; bot y2= 0;
4633 rt x3=w-pcshiftx; y3=1/2h;
4634 x4=x2; top y4=h;
4635 lft x5=pcshiftx; y5=3/4h;
4636 rt x6=lft x3; top y6=y3;
4637 %%ductus:=true;
4638 if ductus:
4639 pickup stylus;
4640 fi
4641 %draw z1..z2{right}..z3{up}..z4{left}..z5{down}..{pdir}z6;
4642 draw z1..z2{right}.. tension 0.8 ..z3{up}.. tension 0.8 ..z4{left}..
4643 tension 0.8 ..z5{down}..{pdir}z6;
4644 ductus:=false;
4645 penlabels(1,2,3,4,5,6,100);
4646 endchar; % end "9"
4647
4648 % \end{macrocode}
4649 % \end{routine}
4650 %
4651 %
4652 % \begin{routine}{0}
4653 % The digit `0'.
4654 % \begin{macrocode}
4655 cmchar "RTND digit 0";
4656 beginchar("0", 2u#+fig_width#, fig_height#, 0);
4657 adjust_fit(0,0);
4658 pcshiftx := u;
4659 y100 = h/2; x100 = pcshiftx+y100; % square center
4660 pickup quill;
4661 lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2;
4662 x2=x4=w/2; top y2=h+o; bot y4=-o;
4663 %%ductus:=true;
4664 if ductus:
4665 pickup stylus;
4666 fi
4667 %draw z1..z2..z3..z4..cycle;
4668 draw z1.. tension 0.8 ..z2.. tension 0.8 ..z3.. tension 0.8 ..z4.. tension 0.8 ..cycle;
4669 ductus:=false;
4670 proofpcbb(100, y100, y100);
4671 penlabels(1,2,3,4,100);
4672 endchar; % end "0"
4673
4674 % \end{macrocode}
4675 % \end{routine}
4676 %
4677 %
4678 % The end of this file.
4679 % \begin{macrocode}
4680 %</dig>
4681 % \end{macrocode}
4682 %
4683 %
4684 % \section{The font definition files} \label{sec:fd}
4685 %
4686 % The font comes in normal and bold weights only.
4687 %
4688 % \begin{macrocode}
4689 %<*fdot1>
4690 \DeclareFontFamily{OT1}{rtnd}{}
4691 \DeclareFontShape{OT1}{rtnd}{m}{n}{ <-8.5> rtnd7 <8.5-15> rtnd10 <15-> rtnd17 }{}
4692 \DeclareFontShape{OT1}{rtnd}{m}{sl}{ <-> sub * rtnd/m/n }{}
4693 \DeclareFontShape{OT1}{rtnd}{m}{it}{ <-> sub * rtnd/m/n }{}
4694 \DeclareFontShape{OT1}{rtnd}{m}{sc}{ <-> sub * rtnd/m/n }{}
4695 \DeclareFontShape{OT1}{rtnd}{m}{u}{ <-> sub * rtnd/m/n }{}
4696 \DeclareFontShape{OT1}{rtnd}{bx}{n}{ <-8.5> rtndb7 <8.5-15> rtndb10 <15-> rtndb17 }{}
4697 \DeclareFontShape{OT1}{rtnd}{bx}{it}{ <-> sub * rtnd/bx/n }{}
4698 \DeclareFontShape{OT1}{rtnd}{bx}{sl}{ <-> sub * rtnd/bx/n }{}
4699 \DeclareFontShape{OT1}{rtnd}{b}{n}{ <-> sub * rtnd/bx/n }{}
4700 %</fdot1>
4701 % \end{macrocode}
4702 %
4703 %
4704 % \begin{macrocode}
4705 %<*fdt1>
4706 \DeclareFontFamily{T1}{rtnd}{}
4707 \DeclareFontShape{T1}{rtnd}{m}{n}{ <-8.5> rtnd7 <8.5-15> rtnd10 <15-> rtnd17 }{}
4708 \DeclareFontShape{T1}{rtnd}{m}{sl}{ <-> sub * rtnd/m/n }{}
4709 \DeclareFontShape{T1}{rtnd}{m}{it}{ <-> sub * rtnd/m/n }{}
4710 \DeclareFontShape{T1}{rtnd}{m}{sc}{ <-> sub * rtnd/m/n }{}
4711 \DeclareFontShape{T1}{rtnd}{m}{u}{ <-> sub * rtnd/m/n }{}
4712 \DeclareFontShape{T1}{rtnd}{bx}{n}{ <-8.5> rtndb7 <8.5-15> rtndb10 <15-> rtndb17 }{}
4713 \DeclareFontShape{T1}{rtnd}{bx}{it}{ <-> sub * rtnd/bx/n }{}
4714 \DeclareFontShape{T1}{rtnd}{bx}{sl}{ <-> sub * rtnd/bx/n }{}
4715 \DeclareFontShape{T1}{rtnd}{b}{n}{ <-> sub * rtnd/bx/n }{}
4716 %</fdt1>
4717 % \end{macrocode}
4718 %
4719 % \section{The package code} \label{sec:code}
4720 %
4721 % \subsection{The \Lpack{rotunda} package}
4722 %
4723 % The \Lpack{rotunda} package is for typesetting short pieces of text
4724 % in the \thisfont{} fonts.
4725 %
4726 % Announce the name and version of the package, which requires
4727 % \LaTeXe{}.
4728 % \begin{macrocode}
4729 %<*usc>
4730 \NeedsTeXFormat{LaTeX2e}
4731 \ProvidesPackage{rotunda}[2002/12/30 v1.0 package for Rotunda fonts]
4732 % \end{macrocode}
4733 %
4734 % \begin{macro}{\Tienc}
4735 % A macro for testing the value of |\encodingdefault|.
4736 % \begin{macrocode}
4737 \providecommand{\Tienc}{T1}
4738 % \end{macrocode}
4739 % \end{macro}
4740 %
4741 %
4742 % \begin{macro}{\rtndfamily}
4743 % Selects the \thisfont{} font family in the OT1 or T1 encoding.
4744 % \begin{macrocode}
4745 \ifx\Tienc\encodingdefault
4746 \newcommand{\rtndfamily}{\usefont{T1}{rtnd}{m}{n}}
4747 \else
4748 \newcommand{\rtndfamily}{\usefont{OT1}{rtnd}{m}{n}}
4749 \fi
4750 % \end{macrocode}
4751 % \end{macro}
4752 %
4753 % \begin{macro}{\textrtnd}
4754 % Text command for the \thisfont{} font family.
4755 % \begin{macrocode}
4756 \DeclareTextFontCommand{\textrtnd}{\rtndfamily}
4757 % \end{macrocode}
4758 % \end{macro}
4759 %
4760 % The end of this package.
4761 % \begin{macrocode}
4762 %</usc>
4763 % \end{macrocode}
4764 %
4765 % \subsection{The \Lpack{allrtnd} package}
4766 %
4767 % The \Lpack{allrtnd} package is intended for use when the entire document
4768 % will be typeset in the book-hand. This is a minimal package. Because the
4769 % book-hand should not contain arabic digits a fuller package would redefine
4770 % anything numbered in \LaTeX{} to use roman instead of arabic numbering.
4771 % Also, because of the large |\baselineskip| many other aspects of \LaTeX{}
4772 % to do with vertical positioning should also be redefined.
4773 %
4774 %
4775 % Announce the name and version of the package, which requires
4776 % \LaTeXe{}. It also uses the \Lpack{rotunda} package.
4777 % \begin{macrocode}
4778 %<*uscall>
4779 \NeedsTeXFormat{LaTeX2e}
4780 \ProvidesPackage{allrtnd}[2002/12/30 v1.0 package for all Rotunda fonts]
4781 \RequirePackage{rotunda}
4782 % \end{macrocode}
4783 %
4784 % \begin{macro}{\Tienc}
4785 % A macro for testing the value of |\encodingdefault|.
4786 % \begin{macrocode}
4787 \providecommand{\Tienc}{T1}
4788 % \end{macrocode}
4789 % \end{macro}
4790 %
4791 % Redefine the default fonts to be \thisfont, which has only one family
4792 % member.
4793 % \begin{macro}{\rmdefault}
4794 % \begin{macro}{\sfdefault}
4795 % \begin{macro}{\ttdefault}
4796 % \begin{macrocode}
4797 \renewcommand{\rmdefault}{rtnd}
4798 \renewcommand{\sfdefault}{rtnd}
4799 \renewcommand{\ttdefault}{rtnd}
4800 % \end{macrocode}
4801 % \end{macro}
4802 % \end{macro}
4803 % \end{macro}
4804 %
4805 % The `leading' in the book-hands is a function of the |x-height|, which is
4806 % normally much
4807 % greater than for the CMR fonts. I have borrowed code from Frank Jensen's
4808 % \Lpack{beton} package~\cite{BETON} to do this. The |x-height| (in points)
4809 % for the CMR
4810 % fonts is given in Table~\ref{tab:cmrx}. Note that the CMR design sizes are
4811 % 5--10, 12, and 17.28 points. The other values given are scaled from these
4812 % figures.
4813 %
4814 % \begin{table}
4815 % \centering
4816 % \caption{The x heights of the CMR and \thisfont{} fonts} \label{tab:cmrx}
4817 % \begin{tabular}{ccc} \hline
4818 % Design & CMR & \thisfont \\
4819 % Size & X Height & X Height \\ \hline
4820 % 5 & 2.14 & 3.00 \\ ^^A CMR skip = 6pt = 2.8 times
4821 % 6 & 2.58 & 3.61 \\ ^^A CMR skip = 7pt = 2.7 times
4822 % 7 & 3.00 & 4.20 \\ ^^A CMR skip = 8pt = 2.7 times
4823 % 8 & 3.44 & 4.81 \\ ^^A CMR skip = 9.5pt = 2.8 times
4824 % 9 & 3.86 & 5.40 \\ ^^A CMR skip = 11pt = 2.8 times
4825 % 10 & 4.31 & 6.03 \\ ^^A CMR skip = 12pt = 2.8 times
4826 % 11 & 4.74 & 6.64 \\ ^^A CMR skip = 13.6pt = 2.8 times
4827 % 12 & 5.17 & 7.24 \\ ^^A CMR skip = 14.5pt = 2.8 times
4828 % 14 & 6.03 & 8.44 \\ ^^A CMR skip = 18pt = 3.0 times
4829 % 17 & 7.44 & 10.41 \\ ^^A CMR skip = 22pt = 3.0 times
4830 % 20 & 8.75 & 12.25 \\ ^^A CMR skip = 25pt = 2.9 times
4831 % 25 & 10.94 & 15.32 \\ ^^A CMR skip = 30pt = 2.7 times
4832 % \hline
4833 % \end{tabular}
4834 % \end{table}
4835 %
4836 % \begin{macro}{\rtnd@baselineskip@table}
4837 % A table of the normal font sizes and the corresponding baselineskip.
4838 % The distance between baselines for \thisfont{} is over twice
4839 % the |x-height|. ^^A actually 2.5 times to nearest half point
4840 %
4841 % \begin{macrocode}
4842 \newcommand{\rtnd@baselineskip@table}{%
4843 <\@vpt>7.5%
4844 <\@vipt>9.0%
4845 <\@viipt>10.5%
4846 <\@viiipt>12.0%
4847 <\@ixpt>13.5%
4848 <\@xpt>15.0%
4849 <\@xipt>16.5%
4850 <\@xiipt>18.0%
4851 <\@xivpt>21.0%
4852 <\@xviipt>26.0%
4853 <\@xxpt>30.5%
4854 <\@xxvpt>38.5}
4855 % \end{macrocode}
4856 % \end{macro}
4857 %
4858 % \begin{macro}{\rtnd@new@setfontsize}
4859 % This is a macro that replaces the |\@setfontsize| macro which is called by
4860 % the font size changing commands.
4861 % \begin{macrocode}
4862 \newcommand{\rtnd@new@setfontsize}[3]{%
4863 \edef\@tempa{\def\noexpand\@tempb####1<#2}%
4864 \@tempa>##2<##3\@nil{\def\rtnd@baselineskip@value{##2}}%
4865 \edef\@tempa{\noexpand\@tempb\rtnd@baselineskip@table<#2}%
4866 \@tempa><\@nil
4867 \ifx\rtnd@baselineskip@value\@empty
4868 \def\rtnd@baselineskip@value{#3}%
4869 \fi
4870 \rtnd@old@setfontsize{#1}{#2}\rtnd@baselineskip@value}
4871 % \end{macrocode}
4872 % \end{macro}
4873 %
4874 % We had better give an author a means of using The Computer Modern fonts
4875 % if necessary.
4876 %
4877 % \begin{macro}{\cmrfamily}
4878 % \begin{macro}{\cmssfamily}
4879 % \begin{macro}{\cmttfamily}
4880 % These macros select the Computer Modern Roman, Sans, and Typewriter
4881 % font families in either the T1 or OT1 encodings.
4882 % \begin{macrocode}
4883 \ifx\Tienc\encodingdefault
4884 \providecommand{\cmrfamily}{\usefont{T1}{cmr}{m}{n}}
4885 \providecommand{\cmssfamily}{\usefont{T1}{cmss}{m}{n}}
4886 \providecommand{\cmttfamily}{\usefont{T1}{cmtt}{m}{n}}
4887 \else
4888 \providecommand{\cmrfamily}{\usefont{OT1}{cmr}{m}{n}}
4889 \providecommand{\cmssfamily}{\usefont{OT1}{cmss}{m}{n}}
4890 \providecommand{\cmttfamily}{\usefont{OT1}{cmtt}{m}{n}}
4891 \fi
4892 % \end{macrocode}
4893 % \end{macro}
4894 % \end{macro}
4895 % \end{macro}
4896 %
4897 % \begin{macro}{\textcmr}
4898 % Text command for the Computer Modern Roman font family.
4899 % \begin{macrocode}
4900 \DeclareTextFontCommand{\textcmr}{\cmrfamily}
4901 % \end{macrocode}
4902 % \end{macro}
4903 %
4904 % \begin{macro}{\textcmss}
4905 % Text command for the Computer Modern Sans font family.
4906 % \begin{macrocode}
4907 \DeclareTextFontCommand{\textcmss}{\cmssfamily}
4908 % \end{macrocode}
4909 % \end{macro}
4910 %
4911 % \begin{macro}{\textcmtt}
4912 % Text command for the Computer Modern Typewriter font family.
4913 % \begin{macrocode}
4914 \DeclareTextFontCommand{\textcmtt}{\cmttfamily}
4915 % \end{macrocode}
4916 % \end{macro}
4917 %
4918 %
4919 % At the start of the document, change the |\@setfontsize| macro and call
4920 % the normal font to implement the change.
4921 % \begin{macrocode}
4922 \AtBeginDocument{%
4923 \let\rtnd@old@setfontsize=\@setfontsize
4924 \let\@setfontsize=\rtnd@new@setfontsize}
4925 \AtBeginDocument{\normalsize}
4926 % \end{macrocode}
4927 %
4928 %
4929 % The end of this package.
4930 % \begin{macrocode}
4931 %</uscall>
4932 % \end{macrocode}
4933 %
4934 %
4935 %
4936 %
4937 %
4938 % \Finale
4939 % \PrintIndex
4940 %
4941 \endinput
4942
4943 %% \CharacterTable
4944 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
4945 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
4946 %% Digits \0\1\2\3\4\5\6\7\8\9
4947 %% Exclamation \! Double quote \" Hash (number) \#
4948 %% Dollar \$ Percent \% Ampersand \&
4949 %% Acute accent \' Left paren \( Right paren \)
4950 %% Asterisk \* Plus \+ Comma \,
4951 %% Minus \- Point \. Solidus \/
4952 %% Colon \: Semicolon \; Less than \<
4953 %% Equals \= Greater than \> Question mark \?
4954 %% Commercial at \@ Left bracket \[ Backslash \\
4955 %% Right bracket \] Circumflex \^ Underscore \_
4956 %% Grave accent \` Left brace \{ Vertical bar \|
4957 %% Right brace \} Tilde \~}
4958
4959