| 1 |
%% |
| 2 |
%% This is file `nfssfont.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% nfssfont.dtx (with options: `code') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs.html |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2025 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the LaTeX base system. |
| 21 |
%% -------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2008 or later. |
| 30 |
%% |
| 31 |
%% This file has the LPPL maintenance status "maintained". |
| 32 |
%% |
| 33 |
%% This file may only be distributed together with a copy of the LaTeX |
| 34 |
%% base system. You may however distribute the LaTeX base system without |
| 35 |
%% such generated files. |
| 36 |
%% |
| 37 |
%% The list of all files belonging to the LaTeX base distribution is |
| 38 |
%% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 39 |
%% information. |
| 40 |
%% |
| 41 |
%% The list of derived (unpacked) files belonging to the distribution |
| 42 |
%% and covered by LPPL is defined by the unpacking scripts (with |
| 43 |
%% extension .ins) which are part of the distribution. |
| 44 |
\def\nfssfontfileversion{v2.2f} |
| 45 |
\def\nfssfontfiledate{2023/11/07} |
| 46 |
|
| 47 |
|
| 48 |
\documentclass{article} |
| 49 |
\nofiles |
| 50 |
\setlength\textwidth{470pt} |
| 51 |
\setlength\oddsidemargin{0pt} |
| 52 |
\addtolength\textheight{7\baselineskip} |
| 53 |
\addtolength\topmargin{-3\baselineskip} |
| 54 |
|
| 55 |
\def\sevenrm{\fontencoding{OT1}\fontsize{7}{9pt}\rmfamily} |
| 56 |
|
| 57 |
\typeout{**********************************************} |
| 58 |
\typeout{* NFSS font test program version <\nfssfontfileversion>} |
| 59 |
\typeout{*} |
| 60 |
\typeout{* Follow the instructions} |
| 61 |
\typeout{**********************************************} |
| 62 |
\typeout{} |
| 63 |
|
| 64 |
\tracinglostchars=0 |
| 65 |
\tolerance=1000 |
| 66 |
\raggedbottom |
| 67 |
\parindent=0pt |
| 68 |
\hyphenpenalty=200 |
| 69 |
\doublehyphendemerits=30000 |
| 70 |
\newcount\m \newcount\n \newcount\p \newdimen\dim |
| 71 |
\chardef\other=12 |
| 72 |
|
| 73 |
\def\today{\ifcase\month\or |
| 74 |
January\or February\or March\or April\or May\or June\or |
| 75 |
July\or August\or September\or October\or November\or December\fi |
| 76 |
\space\number\day, \number\year} |
| 77 |
\def\hours{\n=\time \divide\n 60 |
| 78 |
\m=-\n \multiply\m 60 \advance\m \time |
| 79 |
\twodigits\n\twodigits\m} |
| 80 |
\def\twodigits#1{\ifnum #1<10 0\fi \number#1} |
| 81 |
\def\init{% |
| 82 |
\typein[\currfontname]% |
| 83 |
{Input external font name, e.g., cmr10^^J% |
| 84 |
(or <enter> for NFSS classification of font):}% |
| 85 |
\def\encoding{unknown}% |
| 86 |
\fontencoding{T1}\selectfont |
| 87 |
\ifx\currfontname\empty |
| 88 |
\typein[\encoding]{^^J^^J*** NFSS classification |
| 89 |
***^^J^^JFont encoding [T1]:}% |
| 90 |
\ifx\encoding\empty |
| 91 |
\fontencoding{T1}% |
| 92 |
\def\encoding{T1}% |
| 93 |
\else |
| 94 |
\edef\next{% |
| 95 |
\lowercase{\def\noexpand\next{\encoding enc.def}}}% |
| 96 |
\next |
| 97 |
\makeatletter |
| 98 |
\InputIfFileExists\next |
| 99 |
{}% |
| 100 |
{\PackageWarningNoLine{nfssfont}% |
| 101 |
{Encoding file `\next' not found.% |
| 102 |
\MessageBreak |
| 103 |
You might have misspelled the name of the encoding |
| 104 |
\MessageBreak |
| 105 |
or perhaps this encoding is not a text encoding, |
| 106 |
\MessageBreak |
| 107 |
in which case you will probably only be able to |
| 108 |
\MessageBreak |
| 109 |
run the \noexpand\table command successfully}% |
| 110 |
\expandafter\let\csname T@\encoding\endcsname\empty |
| 111 |
}% |
| 112 |
\makeatother |
| 113 |
\let\next\relax |
| 114 |
\fontencoding\encoding |
| 115 |
\fi |
| 116 |
\typein[\family]{Font family [cmr]:}% |
| 117 |
\relax |
| 118 |
\ifx\family\empty |
| 119 |
\fontfamily{cmr}% |
| 120 |
\else |
| 121 |
\fontfamily\family |
| 122 |
\fi |
| 123 |
\typein[\series]{Font series [m]:}% |
| 124 |
\ifx\series\empty |
| 125 |
\fontseries{m}% |
| 126 |
\else |
| 127 |
\fontseries\series |
| 128 |
\fi |
| 129 |
\typein[\shape]{Font shape [n]:}% |
| 130 |
\ifx\shape\empty |
| 131 |
\fontshape{n}% |
| 132 |
\else |
| 133 |
\fontshape\shape |
| 134 |
\fi |
| 135 |
\typein[\size]{Font size [10pt]:}% |
| 136 |
\ifx\size\empty |
| 137 |
\fontsize{10}{10}% |
| 138 |
\else |
| 139 |
\fontsize\size\size |
| 140 |
\fi |
| 141 |
\selectfont\edef\currfontname{\fontname\font}% |
| 142 |
\fi |
| 143 |
\startfont |
| 144 |
\typein[\action]{Now type a test command or |
| 145 |
\string\help\space for help [ \string\table\space\string\bye\space]:}% |
| 146 |
\ifx\action\empty |
| 147 |
\expandafter\table\expandafter\bye |
| 148 |
\else |
| 149 |
\expandafter\action |
| 150 |
\fi |
| 151 |
} |
| 152 |
\def\startfont{\font\testfont=\currfontname |
| 153 |
\leftline{\sevenrm Test of font \currfontname\unskip\ (encoding |
| 154 |
\encoding\unskip) on \today\ at \hours} |
| 155 |
\medskip |
| 156 |
\testfont \setbaselineskip |
| 157 |
\ifdim\fontdimen6\testfont<10pt \rightskip=0pt plus 20pt |
| 158 |
\else\rightskip=0pt plus 2em \fi |
| 159 |
\spaceskip=\fontdimen2\testfont % space between words (\raggedright) |
| 160 |
\xspaceskip=\fontdimen2\testfont \advance\xspaceskip |
| 161 |
by\fontdimen7\testfont} |
| 162 |
{\catcode`\|=0 \catcode`\\=\other |
| 163 |
|gdef|help{|message{% |
| 164 |
\init switches to another font;^^J% |
| 165 |
\stop or \bye finishes the run;^^J% |
| 166 |
\table prints the font layout in tabular format;^^J% |
| 167 |
\text prints a sample text, assuming TeX text font conventions;^^J% |
| 168 |
\sample combines \table and \text;^^J% |
| 169 |
\mixture mixes a background character with a series of others;^^J% |
| 170 |
\alternation interleaves a background character with a series;^^J% |
| 171 |
\alphabet prints all lowercase letters within a given background;^^J% |
| 172 |
\ALPHABET prints all uppercase letters within a given background;^^J% |
| 173 |
\series prints a series of letters within a given background;^^J% |
| 174 |
\lowers prints a comprehensive test of lowercase;^^J% |
| 175 |
\uppers prints a comprehensive test of uppercase;^^J% |
| 176 |
\digits prints a comprehensive test of numerals;^^J% |
| 177 |
\math prints a comprehensive test of TeX math italic;^^J% |
| 178 |
\names prints a text that mixes upper and lower case;^^J% |
| 179 |
\punct prints a punctuation test;^^J% |
| 180 |
\bigtest combines many of the above routines;^^J% |
| 181 |
\help repeats this message;^^J% |
| 182 |
and you can use ordinary TeX commands (e.g., to \input a file).}}} |
| 183 |
|
| 184 |
\def\setbaselineskip{\setbox0=\hbox{\n=0 |
| 185 |
\loop\char\n \ifnum \n<255 \advance\n 1 \repeat} |
| 186 |
\baselineskip=6pt \advance\baselineskip\ht0 \advance\baselineskip\dp0 } |
| 187 |
\def\setchar#1{{\escapechar-1\message{\string#1 character = }% |
| 188 |
\def\do##1{\catcode`##1=\other}\dospecials |
| 189 |
\read-1 to\next |
| 190 |
\expandafter\finsetchar\next\next#1}} |
| 191 |
\def\finsetchar#1#2\next#3{\global\chardef#3=`#1 |
| 192 |
\ifnum #3=`\# \global\chardef#3=#2 \fi} |
| 193 |
\def\promptthree{\setchar\background |
| 194 |
\setchar\starting \setchar\ending} |
| 195 |
|
| 196 |
\def\mixture{\promptthree \domix\mixpattern} |
| 197 |
\def\alternation{\promptthree \domix\altpattern} |
| 198 |
\def\mixpattern{\0\1\0\0\1\1\0\0\0\1\1\1\0\1} |
| 199 |
\def\altpattern{\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0\1\0} |
| 200 |
\def\domix#1{\par\chardef\0=\background \n=\starting |
| 201 |
\loop \chardef\1=\n #1\endgraf |
| 202 |
\ifnum \n<\ending \advance\n 1 \repeat} |
| 203 |
|
| 204 |
\def\!{\discretionary{\background}{\background}{\background}} |
| 205 |
\def\series{\promptthree \!\doseries\starting\ending\par} |
| 206 |
\def\doseries#1#2{\n=#1\loop\char\n\!\ifnum\n<#2\advance\n 1 \repeat} |
| 207 |
\def\complower{\!\doseries{`a}{`z}\doseries{'31}{'34}\par} |
| 208 |
\def\compupper{\!\doseries{`A}{`Z}\doseries{'35}{'37}\par} |
| 209 |
\def\compdigs{\!\doseries{`0}{`9}\par} |
| 210 |
\def\alphabet{\setchar\background\complower} |
| 211 |
\def\ALPHABET{\setchar\background\compupper} |
| 212 |
|
| 213 |
\def\lowers{\docomprehensive\complower{`a}{`z}{'31}{'34}} |
| 214 |
\def\uppers{\docomprehensive\compupper{`A}{`Z}{'35}{'37}} |
| 215 |
\def\digits{\docomprehensive\compdigs{`0}{`4}{`5}{`9}} |
| 216 |
\def\docomprehensive#1#2#3#4#5{\par\chardef\background=#2 |
| 217 |
\loop{#1} \ifnum\background<#3\m=\background\advance\m 1 |
| 218 |
\chardef\background=\m \repeat \chardef\background=#4 |
| 219 |
\loop{#1} \ifnum\background<#5\m=\background\advance\m 1 |
| 220 |
\chardef\background=\m \repeat} |
| 221 |
\def\names{ {\AA}ngel\aa\ Beatrice Claire |
| 222 |
Diana \'Erica Fran\c{c}oise Ginette H\'el\`ene Iris |
| 223 |
Jackie K\=aren {\L}au\.ra Mar{\'\i}a N\H{a}ta{\l}{\u\i}e {\O}ctave |
| 224 |
Pauline Qu\^eneau Roxanne Sabine T\~a{\'\j}a Ur\v{s}ula |
| 225 |
Vivian Wendy Xanthippe Yv{\o}nne Z\"azilie\par} |
| 226 |
\def\punct{\par\dopunct{min}\dopunct{pig}\dopunct{hid} |
| 227 |
\dopunct{HIE}\dopunct{TIP}\dopunct{fluff} |
| 228 |
\$1,234.56 + 7/8 = 9\% @ \#0\par} |
| 229 |
\def\dopunct#1{#1,\ #1:\ #1;\ `#1'\ ?`#1?\ !`#1!\ (#1)\ [#1]\ |
| 230 |
#1*\ #1.\par} |
| 231 |
|
| 232 |
\def\bigtest{\sample |
| 233 |
hamburgefonstiv HAMBURGEFONSTIV\par |
| 234 |
\names \punct \lowers \uppers \digits} |
| 235 |
|
| 236 |
\def\math{\textfont1=\testfont \skewchar\testfont=\skewtrial |
| 237 |
\mathchardef\Gamma="100 \mathchardef\Delta="101 |
| 238 |
\mathchardef\Theta="102 \mathchardef\Lambda="103 \mathchardef\Xi="104 |
| 239 |
\mathchardef\Pi="105 \mathchardef\Sigma="106 \mathchardef\Upsilon="107 |
| 240 |
\mathchardef\Phi="108 \mathchardef\Psi="109 \mathchardef\Omega="10A |
| 241 |
\def\ii{i} \def\jj{j} |
| 242 |
\def\\##1{|##1|+}\mathtrial |
| 243 |
\def\\##1{##1_2+}\mathtrial |
| 244 |
\def\\##1{##1^2+}\mathtrial |
| 245 |
\def\\##1{##1/2+}\mathtrial |
| 246 |
\def\\##1{2/##1+}\mathtrial |
| 247 |
\def\\##1{##1,{}+}\mathtrial |
| 248 |
\def\\##1{d##1+}\mathtrial |
| 249 |
\let\ii=\imath \let\jj=\jmath \def\\##1{\hat##1+}\mathtrial} |
| 250 |
\newcount\skewtrial \skewtrial='177 |
| 251 |
\def\mathtrial{$\\A \\B \\C \\D \\E \\F \\G \\H \\I \\J \\K \\L \\M \\N |
| 252 |
\\O \\P \\Q \\R \\S \\T \\U \\V \\W \\X \\Y \\Z \\a \\b \\c \\d \\e \\f |
| 253 |
\\g \\h \\\ii \\\jj \\k \\l \\m \\n \\o \\p \\q \\r \\s \\t \\u \\v \\w |
| 254 |
\\x \\y \\z \\\alpha \\\beta \\\gamma \\\delta \\\epsilon \\\zeta |
| 255 |
\\\eta \\\theta \\\iota \\\kappa \\\lambda \\\mu \\\nu \\\xi \\\pi |
| 256 |
\\\rho \\\sigma \\\tau \\\upsilon \\\phi \\\chi \\\psi \\\omega |
| 257 |
\\\vartheta \\\varpi \\\varphi \\\Gamma \\\Delta \\\Theta \\\Lambda |
| 258 |
\\\Xi \\\Pi \\\Sigma \\\Upsilon \\\Phi \\\Psi \\\Omega \\\partial |
| 259 |
\\\ell \\\wp$\par} |
| 260 |
\def\mathsy{\begingroup\skewtrial='060 % for math symbol font tests |
| 261 |
\def\mathtrial{$\\A \\B \\C \\D \\E \\F \\G \\H \\I \\J \\K \\L |
| 262 |
\\M \\N \\O \\P \\Q \\R \\S \\T \\U \\V \\W \\X \\Y \\Z$\par} |
| 263 |
\math\endgroup} |
| 264 |
\def\oct#1{\hbox{\fontencoding{OT1}\rmfamily\'{}\kern-.2em\itshape |
| 265 |
#1\/\kern.05em}}% octal constant |
| 266 |
\def\hex#1{\hbox{\fontencoding{OT1}\rmfamily |
| 267 |
\H{}\ttfamily#1}}% hexadecimal constant |
| 268 |
\def\setdigs#1"#2{\gdef\h{#2}% \h=hex prefix; \0\1=corresponding octal |
| 269 |
\m=\n \divide\m by 64 \xdef\0{\the\m}% |
| 270 |
\multiply\m by-64 \advance\m by\n \divide\m by 8 \xdef\1{\the\m}} |
| 271 |
\def\testrow{\setbox0=\hbox{\penalty 1\def\\{\char"\h}% |
| 272 |
\\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F% |
| 273 |
\global\p=\lastpenalty}} % \p=1 if none of the characters exist |
| 274 |
\def\oddline{\cr |
| 275 |
\noalign{\nointerlineskip} |
| 276 |
\multispan{19}\hrulefill& |
| 277 |
\setbox0=\hbox{\lower 2.3pt\hbox{\hex{\h x}}}\smash{\box0}\cr |
| 278 |
\noalign{\nointerlineskip}} |
| 279 |
\newif\ifskipping |
| 280 |
\def\evenline{\loop\skippingfalse |
| 281 |
\ifnum\n<256 \m=\n \divide\m 16 \chardef\next=\m |
| 282 |
\expandafter\setdigs\meaning\next \testrow |
| 283 |
\ifnum\p=1 \skippingtrue \fi\fi |
| 284 |
\ifskipping \global\advance\n 16 \repeat |
| 285 |
\ifnum\n=256 \let\next=\endchart\else\let\next=\morechart\fi |
| 286 |
\next} |
| 287 |
\def\morechart{\cr\noalign{\hrule\penalty5000} |
| 288 |
\chartline \oddline \m=\1 \advance\m 1 \xdef\1{\the\m} |
| 289 |
\chartline \evenline} |
| 290 |
\def\chartline{&\oct{\0\1x}&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&\:&&} |
| 291 |
\def\chartstrut{\lower4.5pt\vbox to14pt{}} |
| 292 |
\def\table{$$\global\n=0 |
| 293 |
\halign to\hsize\bgroup |
| 294 |
\chartstrut##\tabskip0pt plus10pt& |
| 295 |
&\hfil##\hfil&\vrule##\cr |
| 296 |
\lower6.5pt\null |
| 297 |
&&&\oct0&&\oct1&&\oct2&&\oct3&&\oct4&&\oct5&&\oct6&&\oct7&\evenline} |
| 298 |
\def\endchart{\cr\noalign{\hrule} |
| 299 |
\raise11.5pt\null&&&\hex 8&&\hex 9&&\hex A&&\hex B& |
| 300 |
&\hex C&&\hex D&&\hex E&&\hex F&\cr\egroup$$\par} |
| 301 |
\def\:{\setbox0=\hbox{\noboundary\char\n\noboundary}% |
| 302 |
\ifdim\ht0>7.5pt\reposition |
| 303 |
\else\ifdim\dp0>2.5pt\reposition\fi\fi |
| 304 |
\box0\global\advance\n 1 } |
| 305 |
\def\reposition{\setbox0=\vbox{\kern2pt\box0}\dim=\dp0 |
| 306 |
\advance\dim 2pt \dp0=\dim} |
| 307 |
\def\centerlargechars{ |
| 308 |
\def\reposition{\setbox0=\hbox{$\vcenter{\kern2pt\box0\kern2pt}$}}} |
| 309 |
\def\text{{\advance\baselineskip-4pt |
| 310 |
\setbox0=\hbox{abcdefghijklmnopqrstuvwxyz} |
| 311 |
\ifdim\hsize>2\wd0 |
| 312 |
\ifdim 15pc>2\wd0 \hsize=15pc \else \hsize=2\wd0 \fi |
| 313 |
\fi |
| 314 |
On November 14, 1885, Senator \& Mrs.~Leland Stanford called together |
| 315 |
at their San Francisco mansion the 24~prominent men who had been |
| 316 |
chosen as the first trustees of The Leland Stanford Junior University. |
| 317 |
They handed to the board the Founding Grant of the University, which |
| 318 |
they had executed three days before. This document---with various |
| 319 |
amendments, legislative acts, and court decrees---remains as the |
| 320 |
University's charter. In bold, sweeping language it stipulates that |
| 321 |
the objectives of the University are ``to qualify students for |
| 322 |
personal success and direct usefulness in life; and to promote the |
| 323 |
publick welfare by exercising an influence in behalf of humanity and |
| 324 |
civilization, teaching the blessings of liberty regulated by law, and |
| 325 |
inculcating love and reverence for the great principles of government |
| 326 |
as derived from the inalienable rights of man to life, liberty, and |
| 327 |
the pursuit of happiness.'' \moretext |
| 328 |
(!`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!)\par}} |
| 329 |
\def\moretext{?`But aren't Kafka's Schlo\ss{} and \AE sop's |
| 330 |
\OE uvres often na\"\i ve vis-\`a-vis the d\ae monic ph\oe nix's |
| 331 |
official r\^ole in fluffy souffl\'es? } |
| 332 |
\def\omitaccents{\let\moretext=\relax} |
| 333 |
|
| 334 |
\def\sample{\table\text} |
| 335 |
\def\bye{\end{document}} |
| 336 |
\let\oldtypeout\typeout |
| 337 |
\def\typeout#1{} |
| 338 |
\makeatletter |
| 339 |
\let\@preamblecmds\@empty |
| 340 |
\makeatother |
| 341 |
|
| 342 |
\begin{document} |
| 343 |
\let\typeout\oldtypeout |
| 344 |
|
| 345 |
\ifx\noinit!\else\expandafter\init\fi |
| 346 |
\endinput |
| 347 |
%% |
| 348 |
%% End of file `nfssfont.tex'. |