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