Debian Codegraph @

texmf-dist/source/latex/fonttable/fonttable.dtx

raw
1 % \iffalse meta-comment
2 %
3 % fonttable.dtx
4 %
5 % Author: Peter Wilson (Herries Press)
6 % Maintainer: LaTeX Team https://github.com/LaTeX-Package-Repositories/herries-press/issues
7 % Copyright 2005--2009 Peter R. Wilson
8 % 2009--2011 Will Robertson
9 % 2025-- LaTeX Project Team
10 %
11 % This work may be distributed and/or modified under the
12 % conditions of the Latex Project Public License, either
13 % version 1.3c of this license or (at your option) any
14 % later version: <http://www.latex-project.org/lppl.txt>
15 %
16 % This work has the LPPL maintenance status "maintained".
17 % The Current Maintainer of this work is LaTeX Project Team.
18 %
19 % This work consists of the files listed in the README file.
20 %
21 %<pack>\NeedsTeXFormat{LaTeX2e}
22 %<pack>\ProvidesPackage{fonttable}
23 %<*driver>
24 \ProvidesFile{fonttable.dtx}
25 %</driver>
26 %<*driver|pack>
27 [2026-04-19 v1.6e displays a font]
28 %</driver|pack>
29 %
30 %<*driver>
31 \documentclass[twoside]{ltxdoc}
32 \usepackage{url}
33 \usepackage[draft=false,
34 plainpages=false,
35 pdfpagelabels,
36 bookmarksnumbered,
37 hyperindex=false,
38 colorlinks,linktocpage
39 ]{hyperref}
40 \providecommand{\phantomsection}{}
41 %%\OnlyDescription %% comment this out for the full glory
42 \EnableCrossrefs
43 \CodelineIndex
44 \setcounter{StandardModuleDepth}{1}
45 \makeatletter
46 \@mparswitchfalse
47 \makeatother
48 \renewcommand{\MakeUppercase}[1]{#1}
49 \pagestyle{headings}
50 \newenvironment{addtomargins}[1]{%
51 \begin{list}{}{%
52 \topsep 0pt%
53 \addtolength{\leftmargin}{#1}%
54 \addtolength{\rightmargin}{#1}%
55 \listparindent \parindent
56 \itemindent \parindent
57 \parsep \parskip}%
58 \item[]}{\end{list}}
59 \begin{document}
60 \raggedbottom
61 \DocInput{fonttable.dtx}
62 \end{document}
63 %</driver>
64 %
65 % \fi
66 %
67 %
68 % \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
69 % \DoNotIndex{\@centercr,\@cite}
70 % \DoNotIndex{\@dotsep,\@empty,\@float,\@gobble,\@gobbletwo,\@ignoretrue}
71 % \DoNotIndex{\@input,\@ixpt,\@m}
72 % \DoNotIndex{\@minus,\@mkboth,\@ne,\@nil,\@nomath,\@plus,\@set@topoint}
73 % \DoNotIndex{\@tempboxa,\@tempcnta,\@tempdima,\@tempdimb}
74 % \DoNotIndex{\@tempswafalse,\@tempswatrue,\@viipt,\@viiipt,\@vipt}
75 % \DoNotIndex{\@vpt,\@warning,\@xiipt,\@xipt,\@xivpt,\@xpt,\@xviipt}
76 % \DoNotIndex{\@xxpt,\@xxvpt,\\,\ ,\addpenalty,\addtolength,\addvspace}
77 % \DoNotIndex{\advance,\Alph,\alph}
78 % \DoNotIndex{\arabic,\ast,\begin,\begingroup,\bfseries,\bgroup,\box}
79 % \DoNotIndex{\bullet}
80 % \DoNotIndex{\cdot,\cite,\CodelineIndex,\cr,\day,\DeclareOption}
81 % \DoNotIndex{\def,\DisableCrossrefs,\divide,\DocInput,\documentclass}
82 % \DoNotIndex{\DoNotIndex,\egroup,\ifdim,\else,\fi,\em,\endtrivlist}
83 % \DoNotIndex{\EnableCrossrefs,\end,\end@dblfloat,\end@float,\endgroup}
84 % \DoNotIndex{\endlist,\everycr,\everypar,\ExecuteOptions,\expandafter}
85 % \DoNotIndex{\fbox}
86 % \DoNotIndex{\filedate,\filename,\fileversion,\fontsize,\framebox,\gdef}
87 % \DoNotIndex{\global,\halign,\hangindent,\hbox,\hfil,\hfill,\hrule}
88 % \DoNotIndex{\hsize,\hskip,\hspace,\hss,\if@tempswa,\ifcase,\or,\fi,\fi}
89 % \DoNotIndex{\ifhmode,\ifvmode,\ifnum,\iftrue,\ifx,\fi,\fi,\fi,\fi,\fi}
90 % \DoNotIndex{\input}
91 % \DoNotIndex{\jobname,\kern,\leavevmode,\let,\leftmark}
92 % \DoNotIndex{\list,\llap,\long,\m@ne,\m@th,\mark,\markboth,\markright}
93 % \DoNotIndex{\month,\newcommand,\newcounter,\newenvironment}
94 % \DoNotIndex{\NeedsTeXFormat,\newdimen}
95 % \DoNotIndex{\newlength,\newpage,\nobreak,\noindent,\null,\number}
96 % \DoNotIndex{\numberline,\OldMakeindex,\OnlyDescription,\p@}
97 % \DoNotIndex{\pagestyle,\par,\paragraph,\paragraphmark,\parfillskip}
98 % \DoNotIndex{\penalty,\PrintChanges,\PrintIndex,\ProcessOptions}
99 % \DoNotIndex{\protect,\ProvidesClass,\raggedbottom,\raggedright}
100 % \DoNotIndex{\refstepcounter,\relax,\renewcommand,\reset@font}
101 % \DoNotIndex{\rightmargin,\rightmark,\rightskip,\rlap,\rmfamily,\roman}
102 % \DoNotIndex{\roman,\secdef,\selectfont,\setbox,\setcounter,\setlength}
103 % \DoNotIndex{\settowidth,\sfcode,\skip,\sloppy,\slshape,\space}
104 % \DoNotIndex{\symbol,\the,\trivlist,\typeout,\tw@,\undefined,\uppercase}
105 % \DoNotIndex{\usecounter,\usefont,\usepackage,\vfil,\vfill,\viiipt}
106 % \DoNotIndex{\viipt,\vipt,\vskip,\vspace}
107 % \DoNotIndex{\wd,\xiipt,\year,\z@}
108 %
109 % \changes{v1.0}{2005/11/27}{First public release}
110 % \changes{v1.0a}{2005/12/06}{Minor bug fix}
111 % \changes{v1.1}{2006/10/02}{Minor extensions}
112 % \changes{v1.2}{2006/10/02}{Minor extensions of texts}
113 % \changes{v1.3}{2009/04/30}{Fix serious bug}
114 % \changes{v1.4}{2009/05/06}{Added another way to select a font}
115 % \changes{v1.5}{2009/05/12}{Added code for Knuth's testfont.tex}
116 % \changes{v1.51}{2009/05/14}{Eliminated a clash with babel package}
117 % \changes{v1.5b}{2009/09/02}{New maintainer (Will Robertson)}
118 % \changes{v1.6}{2009/10/15}{New spacing of the decimals from Peter Wilson}
119 % \changes{v1.6b}{2011/02/13}{Fix bug with Spanish babel}
120 % \changes{v1.6c}{2017/06/06}{Fix bug with fonts with `at' in their name}
121 % \changes{v1.6d}{2025/03/12}{Missing relax (issue 51)}
122 % \changes{v1.6e}{2026/04/19}{Avoid global definitions (https://tex.stackexchange.com/questions/762029)}
123 %
124 % \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
125 % \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
126 % \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
127 % \newcommand*{\Lcount}[1]{\textsl {\small#1}} ^^A typeset a counter
128 % \newcommand*{\pstyle}[1]{\textsl {#1}} ^^A typeset a pagestyle
129 % \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
130 % \newcommand*{\AD}{\textsc{ad}}
131 % \newcommand*{\thisfont}{OandS}
132 %
133 % \GetFileInfo{fonttable.dtx}
134 % \title{The \Lpack{fonttable} package}
135 %
136 % \author{%
137 % Author: Peter Wilson, Herries Press\\
138 % Maintainer: \LaTeX\ Team\\
139 % \url{https://github.com/LaTeX-Package-Repositories/herries-press/issues}%
140 % }
141 % \date{\fileversion\qquad \filedate}
142 % \maketitle
143 % \begin{abstract}
144 % The package lets you typeset the characters in a font in tabular and/or
145 % running text forms.
146 % \end{abstract}
147 % \tableofcontents
148 %
149 % \section{Introduction}
150 %
151 % The \Lpack{fonttable} package lets you typeset a font's character set
152 % in tabular and/or running text forms.
153 %
154 % This manual is typeset according to the conventions of the
155 % \LaTeX{} \textsc{docstrip} utility which enables the automatic
156 % extraction of the \LaTeX{} macro source files~\cite{COMPANION}.
157 %
158 % \section{The package}
159 %
160 % The package provides commands to typeset a table of all the glyphs in
161 % a given font and to typeset an example of regular text. For font designers
162 % it provides commands to typeset a `test' glyph among sets of glyphs
163 % from the font.
164 %
165 % \DescribeMacro{\fnthours}
166 % As a convenience, \cs{fnthours} prints the time of day when the file was
167 % processed; it uses the 24 hour clock notation. (The macro \cs{today} prints
168 % the date when the file was processed.)
169 %
170 % \subsection{Table and texts}
171 %
172 %
173 % \DescribeMacro{\fonttable}
174 % The command \\
175 % \cs{fonttable}\marg{testfont} \\
176 % typesets a table showing all the
177 % glyphs in the \meta{testfont}, where \meta{testfont} is the name of a
178 % font file\footnote{More precisely, the name of a \texttt{.tfm} file.}
179 % like \texttt{cmr10} (for Computer Modern Roman) or \texttt{pzdr}
180 % (for Zapf Dingbats).
181 %
182 % NOTE: The \Lpack{mftinc} package~\cite{MFTINC} for pretty-printing
183 % METAFONT code also defines a \cs{fonttable} macro that is akin to this
184 % one. If you want to use both packages together then you can use the following
185 % general procedure for when a macro \cs{macro} is defined in both
186 % \Lpack{packA} and \Lpack{packB} packages.
187 % \begin{verbatim}
188 % \usepackage{packA}
189 % \let\macroA\macro% save packA's definition
190 % \let\macro\relax% undefine \macro
191 % \usepackage{packB}% now it's packB's definition of \macro
192 % ...
193 % \macro % use the packB defintion
194 % \macroA % use the packA definition
195 % \end{verbatim}
196 %
197 % \DescribeMacro{\xfonttable}
198 % The command \\
199 % \cs{xfonttable}\marg{encoding}\marg{family}\marg{series}\marg{shape} \\
200 % typesets a table showing all the
201 % glyphs in the font with encoding \meta{encoding} (e.g., T1 or OMS),
202 % family \meta{family} (e.g., \texttt{ppl} for Palatino or \texttt{cmbrs}
203 % for CM Bright Math (OMS)), font series \meta{series} (e.g., \texttt{sb}
204 % for semibold of \texttt{m} for medium), and font shape \meta{shape}
205 % (e.g., \texttt{n} for normal or \texttt{sc} for small caps).
206 % For example: \\
207 % \verb?\xfonttable{U}{pzd}{m}{n}? \\
208 % for Zapf Dingbats.
209 %
210 % \DescribeMacro{\pikfont}
211 % The command\footnote{The name was chosen in an attempt to avoid
212 % clashes with other macros that might perform similar functions.} \\
213 % \cs{pikfont}\marg{encoding}\marg{family}\marg{series}\marg{shape} \\
214 % selects the font with encoding \meta{encoding} (e.g., T1 or OMS),
215 % family \meta{family} (e.g., \texttt{ppl} for Palatino or \texttt{cmbrs}
216 % for CM Bright Math (OMS)), font series \meta{series} (e.g., \texttt{sb}
217 % for semibold of \texttt{m} for medium), and font shape \meta{shape}
218 % (e.g., \texttt{n} for normal or \texttt{sc} for small caps).
219 % For example: \\
220 % \verb?\pikfont{T1}{ppl}{m}{sc}? \\
221 % for Palatino small caps.
222 % The size of the font corresponds to the current setting (e.g.,
223 % \cs{footnotesize}, \cs{normalsize}, \cs{Large}). It can also be
224 % changed after being selected by the incantation \\
225 % \cs{fontsize}\marg{size}\marg{baselineskip}\cs{selectfont} \\
226 % where \meta{size} is the normal height and \meta{baselineskip} is the
227 % distance between text lines; the measurement system is \texttt{pts}
228 % but just use numbers with no units specified. For example: \\
229 % \verb?\fontsize{12}{15}\selectfont? \\
230 % for a 12pt font with 15pts between baselines.
231 %
232 % If you are unsure about the meaning of the various arguments
233 % of \cs{xfonttable} and \cs{pikfont} see
234 % \textit{The Companion}~\cite[Chapter 7]{COMPANION} or the
235 % \textit{LaTeX2e font selection} manual (\texttt{fntguide.tex}; try
236 % \verb?texdoc fntguide?).
237 %
238 % \DescribeMacro{\fontrange}
239 % The package attempts to populate the table with a maximum of 256 glyphs,
240 % numbered from 0 to 255.
241 % The \cs{fontrange}\marg{low}\marg{high} declaration changes this by reducing
242 % the range so that it extends from \meta{low} to \meta{high}, where \meta{low}
243 % should be at least 0 and \meta{high} at most 256, and \meta{low} less than
244 % \meta{high}.
245 %
246 % The table is composed of blocks of sixteen characters. If necessary the
247 % value of \meta{low} is adjusted lower and \meta{high} is adjusted higher
248 % to match this block structure. For example, if you wanted a table of the
249 % lower 128 characters then \verb?\fontrange{0}{127}? would do the job,
250 % while the upper half of a 256 character font could be tabulated via
251 % \verb?\fontrange{128}{255}?.
252 %
253 % \DescribeMacro{\decimals}
254 % \DescribeMacro{\nodecimals}
255 % Normally each cell in the table includes the decimal number of the position
256 % in the (256) character set. \cs{nodecimals} turns off this numbering and
257 % \cs{decimals} turns it on. The default is \cs{decimals}.
258 %
259 % \DescribeMacro{\hexoct}
260 % \DescribeMacro{\nohexoct}
261 % Normally the columns and rows in the table are numbered using hexadecimal
262 % and octal numbers. These can be turned off by \cs{nohexoct} and turned
263 % on again with \cs{hexoct}, which is the default.
264 %
265 % \DescribeMacro{\ftablewidth}
266 % The font table's width is the length \cs{ftablewidth}, which by default
267 % is set to the normal textwidth (or more exactly, to \cs{hsize}). The table
268 % itself is left aligned. However, if \cs{nohexoct} is in effect the width of
269 % the table is its natural width.
270 %
271 % \DescribeMacro{\fntcolwidth}
272 % When \cs{nohexoct} is in effect the minimum width of a table column
273 % is \cs{fntcolwidth}. This is initially declared as \\
274 % \verb?\setwidth{\fntcolwidth}{0.08\ftablewidth}?
275 %
276 % \DescribeMacro{\fonttext}
277 % The command \cs{fonttext}\marg{testfont} typesets an example text using
278 % the \meta{testfont} (e.g. \texttt{cmr10}).
279 %
280 % \DescribeMacro{\simpletext}
281 % \DescribeMacro{\fulltext}
282 % The example text can be just a paragraph and a line of capitals,
283 % or include more complex accented
284 % words as well. Following the declaration \cs{fulltext} the complex words are
285 % included as well as the example paragraph. The default is \cs{simpletext}
286 % for just the paragraph.
287 %
288 % \DescribeMacro{\regulartext}
289 % The command \cs{regulartext}\marg{fontspec} typesets the example text
290 % using \meta{fontspec}, for example \verb?\rmfamily\itshape?
291 % or \verb?\pikfont{T1}{pnc}{m}{it}?.
292 %
293 % \DescribeMacro{\fonttexts}
294 % \DescribeMacro{\regulartexts}
295 % The macro \cs{fonttexts}\marg{testfont}\marg{text} typesets \meta{text} using
296 % the \meta{testfont} (e.g., \texttt{cmr10}). Similarly the macro
297 % \cs{regulartexts}\marg{fontspec}\marg{text} typesets \meta{text}
298 % using \meta{fontspec} (e.g., \verb?\rmfamily\itshape? or
299 % \verb?\pikfont{T1}{ppl}{m}{it}?).
300 %
301 % \DescribeMacro{\germanparatext}
302 % \DescribeMacro{\latinparatext}
303 % \cs{germanparatext} expands to a German language paragraph, borrowed from the
304 % \Lpack{blindtext} package~\cite{BLINDTEXT}.
305 % \cs{latinparatext} expands to one version of
306 % a paragraph of the traditional \textit{lorem ipsum} dummy Latin text.
307 % Either, or both, of these could be used as the \meta{text} argument
308 % to \cs{fonttexts} or \cs{regulartexts}. \\
309 % NOTE: These were originally called \cs{germantext} and \cs{latintext}
310 % but on 2009/05/14 I was told that the \Lpack{babel} package defines \cs{latintext},
311 % which causes unexpected results if it is used in the same document as this
312 % package. To try and be on the safe side I renamed \cs{germantext}
313 % as well as \cs{latintext}.
314 %
315 % \DescribeMacro{\aztext}
316 % \DescribeMacro{\AZtext}
317 % \DescribeMacro{\digitstext}
318 % \DescribeMacro{\punctext}
319 % \cs{aztext} expands to the lowercase Latin alphabet a to z, and \cs{AZtext}
320 % is the corresponding command for the uppercase A to Z.
321 % The macros \cs{digitstext} and \cs{punctext} expand respectively to the
322 % digits 0 to 9, and to the typical punctuation marks. In all cases there
323 % is a space between each character.
324 %
325 % \subsection{Testing a glyph}
326 %
327 % The macros here are a reimplementation of Donald Knuth's
328 % \texttt{testfont.tex}, which is available from CTAN.
329 %
330 % In the following, the value of a glyph argument can be specified as
331 % its location in the font (i.e., as a decimal number). With a few exceptions,
332 % if the glyph is within the visible ASCII range (33--126) it may instead be
333 % specified by the ASCII character prefixed with a single open quote
334 % mark\footnote{Sometimes called a
335 % `backquote'.} (`). The exceptions are nos: 37 (\verb?%?), 92 (\verb?\?)
336 % 123 (\verb?{?) and 125 (\verb?}?) (but there may be others).
337 % In any case, the glyph representing the
338 % character \texttt{p} can be specified either as \texttt{`p} or as
339 % \texttt{112}.
340 %
341 % The glyphs are taken from the current font. If the font does not
342 % have Latin alphabet glyphs in the ASCII locations then
343 % in the descriptions below phrases like `lowercase alphabet' or `uppercase
344 % alphabet' or `digits', should be taken to mean (the glyphs in) those
345 % locations.
346 %
347 % \DescribeMacro{\glyphmixture}
348 % \cs{glyphmixture}\marg{T}\marg{S}\marg{E} typesets the \meta{T} (test) glyph
349 % between the glyphs in the range from \meta{S} (start) to \meta{E} (end).
350 % For example \\
351 % \verb?\glyphmixture{`e}{`f}{`g}? will produce \\
352 % \texttt{efeeffeeefffef} \\
353 % \texttt{egeeggeeegggeg}
354 %
355 % \DescribeMacro{\glyphalternation}
356 % \cs{glyphalternation}\marg{T}\marg{S}\marg{E} typesets the \meta{T}
357 % glyph alternately between each glyph in the range from \meta{S}
358 % to \meta{E}.
359 % For example \\
360 % \verb?\glyphalternation{`e}{`f}{`g}? will produce \\
361 % \texttt{efefefefefefefefe} \\
362 % \texttt{egegegegegegegege}
363 %
364 % \DescribeMacro{\glyphseries}
365 % \cs{glyphseries}\marg{T}\marg{S}\marg{E} typesets the \meta{T}
366 % glyph between the glyphs in the range from \meta{S}
367 % to \meta{E}.
368 % For example \\
369 % \verb?\glyphseries{`e}{`f}{`h}? will produce \\
370 % \texttt{efegehe}
371 %
372 % \DescribeMacro{\glyphalphabet}
373 % \DescribeMacro{\GLYPHALPHABET}
374 % \cs{glyphalphabet}\marg{T} typesets the \meta{T} glyph between
375 % each letter of the lowercase Latin alphabet plus a few others.
376 % \cs{GLYPHALPHABET}\marg{T}
377 % does the same but using the uppercase Latin alphabet.
378 % For example, the output of \\
379 % \verb?\glyphalphabet}{`3}? is like \\
380 % \texttt{3a3b3c3d3e3f3g\ldots3z3\char31 3}\verb?~?\texttt{3\char33 3\char34 3}
381 %
382 % \DescribeMacro{\glyphlowers}
383 % \DescribeMacro{\glyphlowers}
384 % \DescribeMacro{\glyphdigits}
385 % \cs{glyphlowers} takes each character of the lowercase alphabet in turn as
386 % a test glyph and sets it interspersed among the other lowercase characters.
387 % \cs{glyphuppers} and \cs{glyphdigits} are similar except that they use
388 % the uppercase alphabet and the ten digits instead. For example,
389 % \cs{glyphdigits} produces output like \\
390 % \texttt{000102030405060708090} \\
391 % \texttt{101112131415161718191} \\
392 % \texttt{202122232425262728292} \\
393 % \ldots \\
394 % \texttt{909192939495969798999}
395 %
396 % \DescribeMacro{\glyphpunct}
397 % \cs{glyphpunct} sets a collection of words with an assortment of
398 % punctuation marks.
399 %
400 %
401 % \StopEventually{
402 % \bibliographystyle{alpha}
403 % \renewcommand{\refname}{Bibliography}
404 % \begin{thebibliography}{GMS94}
405 % \addcontentsline{toc}{section}{\refname}
406 %
407 % \bibitem[Lik05]{BLINDTEXT}
408 % Knut Lickert.
409 % \newblock \emph{Blindtext.sty: Creating text for testing / Texterzeugung
410 % zum testen}.
411 % \newblock October 2005.
412 % \newblock (Available from CTAN in \url{macros/latex/contrib/blindtext})
413 %
414 % \bibitem[MG04]{COMPANION}
415 % Frank Mittelbach and Michel Goossens.
416 % \newblock \emph{The LaTeX Companion}.
417 % \newblock Second edition.
418 % \newblock Addison-Wesley Publishing Company, 2004.
419 %
420 % \bibitem[Pak05]{MFTINC}
421 % Scott Pakin
422 % \newblock `The \Lpack{mftinc} package',
423 % \newblock January 2005.
424 % \newblock (Available from CTAN in \url{macros/latex/contrib/mftinc})
425 %
426 %
427 % \end{thebibliography}
428 %
429 % \PrintIndex
430 %
431 % }
432 %
433 %
434 %
435 % \section{The code} \label{sec:mf}
436 %
437 % \begin{macrocode}
438 %<*pack>
439 % \end{macrocode}
440 %
441 % \subsection{Table and texts}
442 %
443 % Most of the code below is an edited version of code used in
444 % \texttt{nfssfont.tex} for displaying aspects of the set of glyphs in a font.
445 %
446 % \begin{macro}{\sevenrm}
447 % A small fixed size roman font.
448 % \begin{macrocode}
449 \providecommand*{\sevenrm}{\fontsize{7}{9pt}\rmfamily}
450 % \end{macrocode}
451 % \end{macro}
452 %
453 % \begin{macro}{\f@tm}
454 % \begin{macro}{\f@tn}
455 % \begin{macro}{\f@tp}
456 % \begin{macro}{\f@tdim}
457 % Counts and a dimen.
458 % \begin{macrocode}
459 \newcount\f@tm \newcount\f@tn \newcount\f@tp \newdimen\f@tdim
460
461 % \end{macrocode}
462 % \end{macro}
463 % \end{macro}
464 % \end{macro}
465 % \end{macro}
466 %
467 % \begin{macro}{\fonttable}
468 % \cs{fonttable}\marg{font} typesets a table of all the glyphs in the
469 % \meta{font} (e.g., auncl10).
470 % \begin{macrocode}
471 \newcommand*{\fonttable}[1]{%
472 \def\f@tfontname{#1}%
473 \bgroup
474 \f@tstartfont
475 \ftable
476 \egroup}
477
478 % \end{macrocode}
479 % \end{macro}
480 %
481 % \begin{macro}{\pikfont}
482 % \cs{pikfont}\marg{encoding}\marg{family}\marg{series}\marg{shape}
483 % selects the font with \meta{encoding},
484 % \meta{family}, \meta{series} and \meta{shape}.
485 % \changes{v1.4}{2009/05/06}{Added \cs{pikfont}}
486 % \begin{macrocode}
487 \DeclareRobustCommand{\pikfont}[4]{%
488 \fontencoding{#1}\fontfamily{#2}\fontseries{#3}\fontshape{#4}\selectfont}
489
490 % \end{macrocode}
491 % \end{macro}
492 %
493 % \begin{macro}{\xfonttable}
494 % \cs{xfonttable}\marg{encoding}\marg{family}\marg{series}\marg{shape}
495 % typesets a table of all the glyphs in the font with \meta{encoding},
496 % \meta{family}, \meta{series} and \meta{shape}
497 % (e.g., \verb?\xfonttable{T1}{pnc}{m}{it}? for New Century Schoolbook italic).
498 % The original code for the macro was supplied by Enrico Gregorio.
499 % \changes{v1.4}{2009/05/06}{Added \cs{xfonttable}}
500 % \begin{macrocode}
501 \newcommand*{\xfonttable}[4]{%
502 \begingroup
503 \pikfont{#1}{#2}{#3}{#4}%
504 \edef\f@tfontname{\fontname\font}%
505 % \end{macrocode}
506 % New: strip any size information from the fontname (which could be, e.g.,
507 % either `\verb*|cmr10|' or `\verb*|cmr10 at 10pt|'.)
508 % This wasn't necessary before because we didn't explicitly choose the font
509 % size; it was inferred automatically.
510 % \begin{macrocode}
511 \edef\@tempa{ \string a\string t}%
512 \edef\@tempb{\noexpand\in@{\@tempa}{\f@tfontname}}%
513 \@tempb
514 \ifin@
515 \edef\f@tfontname{\expandafter\f@tstripsize\f@tfontname}%
516 \fi
517 % \end{macrocode}
518 % End new code, and finish as before:
519 % \begin{macrocode}
520 \normalfont
521 \f@tstartfont
522 \ftable
523 \endgroup
524 }
525 % \end{macrocode}
526 % \end{macro}
527 %
528 %
529 % \begin{macro}{\f@tstripsize}
530 % Needed above.
531 % \begin{macrocode}
532 \edef\@tempa{%
533 \def\noexpand\f@tstripsize
534 ##1 \string a\string t##2\string p\string t{##1}%
535 }
536 \@tempa
537 % \end{macrocode}
538 % \end{macro}
539 %
540 %
541 % \begin{macro}{\f@tstartfont}
542 % Sets up for a font table.
543 % \begin{macrocode}
544 \newcommand*{\f@tstartfont}{%
545 % \end{macrocode}
546 % New: scale the font by 0.01\% to (attempt to) avoid TeX's font optimisation.
547 % This becomes a problem in Spanish babel, say, when \verb|\textfont\fam|
548 % changes when \verb|cmr10| has been loaded under a different name, here.
549 % (And the \verb|\textfont| can no longer be parsed correctly. See:
550 % \url{http://latex-alive.tumblr.com/post/3229118083/texs-font-loading-optimisation}
551 % )
552 % \begin{macrocode}
553 \@tempdima=\f@size pt
554 \font\f@ttestfont=\f@tfontname\space at 0.9999\@tempdima\relax
555 % \end{macrocode}
556 % Continue as before:
557 % \begin{macrocode}
558 \f@ttestfont \f@tsetbaselineskip
559 \ifdim\fontdimen6\f@ttestfont<10pt\relax
560 \rightskip=0pt plus 20pt\relax
561 \else
562 \rightskip=0pt plus 2em\relax
563 \fi
564 \spaceskip=\fontdimen2\f@ttestfont % space between words (\raggedright)
565 \xspaceskip=\fontdimen2\f@ttestfont
566 \advance\xspaceskip by\fontdimen7\f@ttestfont
567 }
568 % \end{macrocode}
569 % \end{macro}
570 %
571 % \begin{macro}{\f@tsetbaselineskip}
572 % \begin{macrocode}
573 \newcommand*{\f@tsetbaselineskip}{\setbox0=\hbox{\f@tn=0
574 \loop\char\f@tn \ifnum \f@tn<255 \advance\f@tn 1 \repeat}
575 \baselineskip=6pt \advance\baselineskip\ht0 \advance\baselineskip\dp0 }
576
577 % \end{macrocode}
578 % \end{macro}
579 %
580 % \begin{macro}{\f@toct}
581 % \cs{f@toct}\marg{onum} typesets the octal constant \meta{onum}.
582 % \begin{macrocode}
583 \newcommand*{\f@toct}[1]{\hbox{\rmfamily\'{}\kern-.2em\itshape
584 #1\/\kern.05em}} % octal constant
585 % \end{macrocode}
586 % \end{macro}
587 %
588 % \begin{macro}{\f@thex}
589 % \cs{f@thex}\marg{hnum} typesets the hexadecimal constant \meta{hnum}.
590 % \begin{macrocode}
591 \newcommand*{\f@thex}[1]{\hbox{\rmfamily\H{}\ttfamily#1}} % hexadecimal constant
592 % \end{macrocode}
593 % \end{macro}
594 %
595 % \begin{macro}{\f@tsetdigs}
596 % \cs{f@tsetdigs}
597 % \begin{macrocode}
598 \def\f@tsetdigs#1"#2{\gdef\f@thexpre{#2}% \f@thexpre=hex prefix; \f@tocta\f@toctb=corresponding octal
599 \f@tm=\f@tn \divide\f@tm by 64 \xdef\f@tocta{\the\f@tm}%
600 \multiply\f@tm by-64 \advance\f@tm by\f@tn \divide\f@tm by 8 \xdef\f@toctb{\the\f@tm}}
601 % \end{macrocode}
602 % \end{macro}
603 %
604 % \begin{macro}{\f@ttestrow}
605 % \cs{f@ttestrow} checks if there are any characters in the next block of
606 % 16 slots.
607 % \begin{macrocode}
608 \newcommand*{\f@ttestrow}{\setbox0=\hbox{\penalty 1\def\\{\char"\f@thexpre}%
609 \\0\\1\\2\\3\\4\\5\\6\\7\\8\\9\\A\\B\\C\\D\\E\\F%
610 \global\f@tp=\lastpenalty}} % \f@tp=1 if none of the characters exist
611
612 % \end{macrocode}
613 % \end{macro}
614 %
615 % \begin{macro}{\ifhexoct}
616 % \begin{macro}{\hexoct}
617 % \begin{macro}{\nohexoct}
618 % Flag for (not) setting hex and octal numbers.
619 % \begin{macrocode}
620 \newif\ifhexoct
621 \newcommand*{\hexoct}{\hexocttrue}
622 \newcommand*{\nohexoct}{\hexoctfalse}
623 \hexoct
624
625 % \end{macrocode}
626 % \end{macro}
627 % \end{macro}
628 % \end{macro}
629 %
630 %
631 % \begin{macro}{\f@toddlinenum}
632 % \cs{f@toddline}
633 % \begin{macrocode}
634 \newcommand*{\f@toddline}{\cr
635 \noalign{\nointerlineskip}
636 \multispan{19}\hrulefill&
637 \setbox0=\hbox{\lower 2.3pt\hbox{\f@thex{\f@thexpre x}}}\smash{\box0}
638 \cr
639 \noalign{\nointerlineskip}}
640
641 % \end{macrocode}
642 % \end{macro}
643 %
644 % \begin{macro}{\iff@tskipping}
645 % \begin{macro}{\f@tskippingtrue}
646 % \begin{macro}{\f@tskippingfalse}
647 % \begin{macrocode}
648 \newif\iff@tskipping
649
650 % \end{macrocode}
651 % \end{macro}
652 % \end{macro}
653 % \end{macro}
654 %
655 % \begin{macro}{\fontrange}
656 % \cs{fontrange}\marg{low}\marg{high} sets the character range to be
657 % output.
658 % \begin{macrocode}
659 \newcommand*{\fontrange}[2]{%
660 \ifnum#1<#2\relax
661 % \end{macrocode}
662 % Set \cs{f@tlow} to the nearest multiple of 16 that is at or below \meta{low},
663 % but first make sure that it will be at least 0.
664 % \begin{macrocode}
665 \ifnum#1<\z@
666 \f@tm=\z@
667 \else
668 \f@tm=#1
669 \divide \f@tm \sixt@@n
670 \multiply \f@tm \sixt@@n
671 \fi
672 \edef\f@tlow{\the\f@tm}
673 % \end{macrocode}
674 % Set \cs{f@thigh} to the nearest multiple of 16 at or above \meta{high},
675 % finally making sure that its maximum is 256.
676 % \begin{macrocode}
677 \f@tm=#2
678 \divide \f@tm \sixt@@n
679 \advance \f@tm \@ne
680 \multiply \f@tm \sixt@@n
681 \ifnum \f@tm > \@cclvi \f@tm=\@cclvi \fi
682 \edef\f@thigh{\the\f@tm}
683 \else
684 \PackageError{fonttable}{%
685 Improper values for fontrange. Default values substituted}{\@ehc}
686 \def\f@tlow{0} \def\f@thigh{256}
687 \fi}
688 \fontrange{0}{256}
689
690 % \end{macrocode}
691 % \end{macro}
692 %
693 % \begin{macro}{\f@tloopforsixteen}
694 % \cs{f@tloopforsixteen} sets up a block of sixteen character slots.
695 % \begin{macrocode}
696 \newcommand*{\f@tloopforsixteen}{%
697 \ifnum\f@tn<\f@tlow \global\f@tn=\f@tlow\fi
698 \loop\f@tskippingfalse
699 \ifnum\f@tn<\f@thigh \f@tm=\f@tn \divide\f@tm \sixt@@n \chardef\next=\f@tm
700 \expandafter\f@tsetdigs\meaning\next \f@ttestrow
701 \ifnum\f@tp=\@ne \f@tskippingtrue \fi\fi
702 \iff@tskipping \global\advance\f@tn \sixt@@n \repeat}
703
704 % \end{macrocode}
705 % \end{macro}
706 %
707 % \begin{macro}{\f@tevenline}
708 % \begin{macro}{\f@tevenlinenonum}
709 % \cs{f@tevenline} gets next non-empty set of a block of 16 characters.
710 % It either calls \cs{f@tmorechart} to print them, or \cs{f@tendchart} to
711 % finish off the table if all 256 potential characters have been processed.
712 %
713 % \cs{f@tevenlinenonum} does something similar when no external numbers
714 % are printed.
715 % \begin{macrocode}
716 \newcommand*{\f@tevenline}{%
717 \f@tloopforsixteen
718 \ifnum\f@tn=\f@thigh \let\next=\f@tendchart\else\let\next=\f@tmorechart\fi
719 \next}
720 \newcommand*{\f@tevenlinenonum}{%
721 \f@tloopforsixteen
722 \ifnum\f@tn=\f@thigh\relax
723 \\\hline
724 \else
725 \\\hline
726 \f@tmorechartnonum
727 \fi}
728
729 % \end{macrocode}
730 % \end{macro}
731 % \end{macro}
732 %
733 % \begin{macro}{\f@tmorechart}
734 % \begin{macro}{\f@tmorechartnonum}
735 % \cs{f@tmorechart} sets two lines of the table, and \cs{f@tmorechartnonum}
736 % does the same when there are no external numbers.
737 % \begin{macrocode}
738 \newcommand*{\f@tmorechart}{\cr\noalign{\hrule\penalty5000}
739 \f@tchartline \f@toddline \f@tm=\f@toctb \advance\f@tm 1 \xdef\f@toctb{\the\f@tm}
740 \f@tchartline \f@tevenline}
741 \newcommand*{\f@tmorechartnonum}{%
742 \f@tsimpleline \\ \hline
743 \f@tsimpleline \f@tevenlinenonum}
744
745 % \end{macrocode}
746 % \end{macro}
747 % \end{macro}
748 %
749 % \begin{macro}{\f@tchartline}
750 % \begin{macro}{\f@tsimpleline}
751 % \cs{f@tchartline} does a line of the table, including external numbers,
752 % and \cs{f@tsimpleline} does an unnumbered line.
753 % \begin{macrocode}
754 \newcommand*{\f@tchartline}{%
755 &\f@toct{\f@tocta\f@toctb x}&&\f@tpsg{}&&\f@tpsg{}&&\f@tpsg{}&&\f@tpsg{}&&\f@tpsg{}&&\f@tpsg{}&&\f@tpsg{}&&\f@tpsg{}&&}
756 \newcommand*{\f@tsimpleline}{%
757 \f@tpsg{}\f@tchartstrut& \f@tpsg{} & \f@tpsg{} & \f@tpsg{} & \f@tpsg{} & \f@tpsg{} & \f@tpsg{} & \f@tpsg{}}
758
759 % \end{macrocode}
760 % \end{macro}
761 % \end{macro}
762 %
763 % \begin{macro}{\f@tchartstrut}
764 % \begin{macro}{\ftablewidth}
765 % \begin{macro}{\fntcolwidth}
766 % \cs{f@tchartstrut} is a strut used in each table line. \cs{ftablewidth} is
767 % width of an externally numbered table. \cs{fntcolwidth} is the minimum
768 % width of a column in an unnumbered table.
769 % \begin{macrocode}
770 \newcommand*{\f@tchartstrut}{\lower4.5pt\vbox to14pt{}}
771 \newdimen\ftablewidth
772 \ftablewidth=\hsize
773 \newdimen\fntcolwidth
774 \setlength{\fntcolwidth}{0.08\ftablewidth}
775 % \end{macrocode}
776 % \end{macro}
777 % \end{macro}
778 % \end{macro}
779 %
780 % \begin{macro}{\f@tcol}
781 % \begin{macro}{\f@tstartchartnonum}
782 % \cs{f@tstartchartnonum} is a table line of spaces, with no verticals.
783 % \begin{macrocode}
784 \newcommand*{\f@tcol}{%
785 \multicolumn{1}{c}{\hspace*{\fntcolwidth}}}
786 \newcommand*{\f@tstartchartnonum}{%
787 \f@tcol &\f@tcol &\f@tcol &\f@tcol &\f@tcol &\f@tcol &\f@tcol &\f@tcol}
788
789 % \end{macrocode}
790 % \end{macro}
791 % \end{macro}
792 %
793 % \begin{macro}{\ftable}
794 % \begin{macro}{\f@tftablenum}
795 % \begin{macro}{\f@tftablenonum}
796 % \cs{ftable} sets a complete character table. The actual code is in either
797 % \cs{f@tftablenum} or \cs{f@tftablenonum} for externally numbered or
798 % plain tables, respectively.
799 % \changes{v1.0a}{2005/12/06}{Added missing zeroing of \cs{f@tn} to \cs{f@tftablenonum}}
800 % \begin{macrocode}
801 \newcommand*{\f@tftablenum}{$$\global\f@tn=\z@
802 \halign to\ftablewidth\bgroup
803 \f@tchartstrut##\tabskip0pt plus10pt&
804 &\hfil##\hfil&\vrule##\cr
805 \lower6.5pt\null
806 &&&\f@toct0&&\f@toct1&&\f@toct2&&\f@toct3&&\f@toct4&&\f@toct5&&\f@toct6&&\f@toct7&%
807 \f@tevenline}
808 \newcommand*{\f@tftablenonum}{%
809 \global\f@tn=\z@
810 \begin{tabular}{|c|c|c|c|c|c|c|c|}
811 \f@tstartchartnonum
812 \f@tevenlinenonum
813 \end{tabular}}
814 \newcommand*{\ftable}{\ifhexoct\f@tftablenum\else\f@tftablenonum\fi}
815
816 % \end{macrocode}
817 % \end{macro}
818 % \end{macro}
819 % \end{macro}
820 %
821 % \begin{macro}{\f@tendchart}
822 % \cs{f@tendchart} sets the last line of an externally numbered table with
823 % the relevant hex digits.
824 % \begin{macrocode}
825 \newcommand*{\f@tendchart}{\cr\noalign{\hrule}
826 \raise11.5pt\null&&&\f@thex 8&&\f@thex 9&&\f@thex A&&\f@thex B&
827 &\f@thex C&&\f@thex D&&\f@thex E&&\f@thex F&\cr
828 \egroup$$\par}
829
830 % \end{macrocode}
831 % \end{macro}
832 %
833 % \begin{macro}{\f@tpsg}
834 % \changes{v1.3}{2009/04/30}{Replaced redefinition of \cs{:} by \cs{f@tpsg}}
835 % \changes{v1.5c}{2009/09/20}{\cs{renewcommand}\cs{f@tpsg} instead (props Michael Niedermair)}
836 % \changes{v1.5d}{2009/09/22}{Fix the bug for real this time}
837 % \begin{macro}{\f@placechar}
838 % \begin{macro}{\f@placedecimal}
839 % \cs{f@tpsg} typesets a single glyph, possibly with its decimal slot number.
840 % \cs{f@placechar} is the function to typeset the glyph with its number that is
841 % internally defined as \cs{f@placedecimal} if decimals are to be shown.
842 % \begin{macrocode}
843 \newcommand*{\f@tpsg}{%
844 \setbox\z@=\hbox{\f@placechar{\char\f@tn}{\the\f@tn}}%
845 \ifdim\ht\z@>7.5pt\relax
846 \f@treposition
847 \else
848 \ifdim\dp\z@>2.5pt\relax
849 \f@treposition
850 \fi
851 \fi
852 \box\z@
853 \global\advance\f@tn\@ne
854 }
855 % \end{macrocode}
856 % Change this definition to adjust the typesetting of the decimal numbers:
857 % \begin{macrocode}
858 \newcommand*\f@placedecimal[2]{#1\ {\tiny #2}}
859 % \end{macrocode}
860 % \end{macro}
861 % \end{macro}
862 % \end{macro}
863 %
864 % \begin{macro}{\decimals}
865 % \begin{macro}{\nodecimals}
866 % Following \cs{decimals}, which is the default, decimal numbers are
867 % printed in the table. Following \cs{nodecimals} they are not printed.
868 % \begin{macrocode}
869 \newcommand*{\nodecimals}{%
870 \renewcommand*\f@placechar{\@firstoftwo}%
871 }
872 % \end{macrocode}
873 %
874 % \begin{macrocode}
875 \newcommand{\decimals}{%
876 \renewcommand*\f@placechar{\f@placedecimal}%
877 }
878 \newcommand*\f@placechar{}
879 \decimals
880 % \end{macrocode}
881 % \end{macro}
882 % \end{macro}
883 %
884 % \begin{macro}{\f@treposition}
885 % \cs{f@treposition}
886 % \begin{macrocode}
887 \newcommand*{\f@treposition}{\setbox0=\vbox{\kern2pt\box0}\f@tdim=\dp0
888 \advance\f@tdim 2pt \dp0=\f@tdim}
889
890 % \end{macrocode}
891 % \end{macro}
892 %
893 % \begin{macro}{\fonttext}
894 % \cs{fonttext}\marg{font} typesets \cs{knutext} using \meta{font} (e.g.
895 % auncl10).
896 % \begin{macrocode}
897 \def\fonttext#1{%
898 \def\f@tfontname{#1}%
899 \bgroup
900 \f@tstartfont
901 \knutext
902 \egroup}
903
904 % \end{macrocode}
905 % \end{macro}
906 %
907 % \begin{macro}{\regulartext}
908 % \cs{regulartext}\marg{fontspec} typesets \cs{knutext} using \meta{fontspec}
909 % (e.g., \cs{aunclfamily}).
910 % \begin{macrocode}
911 \def\regulartext#1{%
912 \bgroup
913 #1
914 \knutext
915 \egroup}
916
917 % \end{macrocode}
918 % \end{macro}
919 %
920 % \begin{macro}{\knutext}
921 % Deathless prose from Knuth for testing a font. It includes
922 % \cs{moreknutext}, \cs{capknutext}, and \cs{knunames}.
923 % \begin{macrocode}
924 \def\knutext{{
925 On November 14, 1885, Senator \& Mrs.~Leland Stanford called together
926 at their San Francisco mansion the 24~prominent men who had been
927 chosen as the first trustees of The Leland Stanford Junior University.
928 They handed to the board the Founding Grant of the University, which
929 they had executed three days before. This document---with various
930 amendments, legislative acts, and court decrees---remains as the
931 University's charter. In bold, sweeping language it stipulates that
932 the objectives of the University are ``to qualify students for
933 personal success and direct usefulness in life; and to promote the
934 publick welfare by exercising an influence in behalf of humanity and
935 civilization, teaching the blessings of liberty regulated by law, and
936 inculcating love and reverence for the great principles of government
937 as derived from the inalienable rights of man to life, liberty, and
938 the pursuit of happiness.''
939
940 \moreknutext
941
942 \capknutext
943
944 \knunames
945 \par}}
946
947 % \end{macrocode}
948 % \end{macro}
949 %
950 % \begin{macro}{\@moreknutext}
951 % Some more text with a variety of ligatures and accents.
952 % \begin{macrocode}
953 \def\@moreknutext{?`But aren't Kafka's Schlo{\ss} and {\AE}sop's
954 {\OE}uvres often na{\"\i}ve vis-\`a-vis the d{\ae}monic ph{\oe}nix's
955 official r\^ole in fluffy souffl\'es? }
956
957 % \end{macrocode}
958 % \end{macro}
959 %
960 % \begin{macro}{\@capknutext}
961 % \begin{macro}{\capknutext}
962 % Text using only capital letters and some punctuation.
963 % \begin{macrocode}
964 \newcommand{\@capknutext}{%
965 (!`THE DAZED BROWN FOX QUICKLY GAVE 12345--67890 JUMPS!)}
966 \let\capknutext\@capknutext
967
968 % \end{macrocode}
969 % \end{macro}
970 % \end{macro}
971 %
972 % \begin{macro}{\@knunames}
973 % Lots of accents masquerading in personal names.
974 % \begin{macrocode}
975 \def\@knunames{ {\AA}ngel\aa\ Beatrice Claire
976 Diana \'Erica Fran\c{c}oise Ginette H\'el\`ene Iris
977 Jackie K\=aren {\L}au\.ra Mar{\'\i}a N\H{a}ta{\l}{\u\i}e {\O}ctave
978 Pauline Qu\^eneau Roxanne Sabine T\~a{\'\j}a Ur\v{s}ula
979 Vivian Wendy Xanthippe Yv{\o}nne Z\"azilie\par}
980
981 % \end{macrocode}
982 % \end{macro}
983 %
984 % \begin{macro}{\guillemotleft}
985 % \begin{macro}{\guillemotright}
986 % \begin{macro}{\flqq}
987 % \begin{macro}{\frqq}
988 % Just in case the French quotes are not defined, as they are called for in
989 % the subsequent \cs{germantext}.
990 % \changes{v1.2}{2008/05/08}{Replaced \cs{providecommand} for guillemots
991 % by \cs{DeclareTextSymbol}}
992 % \begin{macrocode}
993 \DeclareTextSymbol{\guillemotleft}{OT1}{`\'}
994 \DeclareTextSymbol{\guillemotright}{OT1}{`\`}
995 \providecommand{\flqq}{\guillemotleft}
996 \providecommand{\frqq}{\guillemotright}
997
998 % \end{macrocode}
999 % \end{macro}
1000 % \end{macro}
1001 % \end{macro}
1002 % \end{macro}
1003 %
1004 % \begin{macro}{\germantext}
1005 % \begin{macro}{\germanparatext}
1006 % Text from the \Lpack{Blindtext} package.
1007 % \changes{v1.1}{2006/10/02}{Added \cs{germantext}}
1008 % \changes{v1.51}{2009/05/14}{Changed \cs{germantext} to \cs{germanparatext}}
1009 % \begin{macrocode}
1010 \providecommand*{\germantext}{%
1011 \PackageWarning{fonttable}{\protect\germantext\space is deprecated,
1012 \MessageBreak use \protect\germanparatext\space instead}}
1013 \newcommand*{\germanparatext}{%
1014 Dies hier ist ein Blindtext zum Testen von Textausgaben. Wer
1015 diesen Text liest, ist selbst schuld. Der Text gibt lediglich den
1016 Grauwert der Schrift an. Ist das wirklich so? Ist es
1017 gleich\-g\"ul\-tig ob ich schreibe: \frqq Dies ist ein
1018 Blindtext\flqq\ oder \frqq Huardest gefburn\flqq? Kjift --
1019 mitnichten! Ein Blindtext bietet mir wichtige Informationen. An
1020 ihm messe ich die Lesbarkeit einer Schrift, ihre Anmutung, wie
1021 harmonisch die Figuren zueinander stehen und pr\"u\-fe, wie breit
1022 oder schmal sie l\"auft. Ein Blindtext sollte m\"og\-lichst viele
1023 verschiedene Buchstaben enthalten und in der Originalsprache
1024 gesetzt sein. Er mu\ss\ keinen Sinn ergeben, sollte aber lesbar
1025 sein. Fremdsprachige Texte wie \frqq Lorem ipsum\flqq\ dienen
1026 nicht dem eigentlichen Zweck, da sie eine
1027 falsche Anmutung vermitteln.\par}
1028
1029 % \end{macrocode}
1030 % \end{macro}
1031 % \end{macro}
1032 %
1033 % \begin{macro}{\latintext}
1034 % \begin{macro}{\latinparatext}
1035 % The traditional printers' text.
1036 % \changes{v1.1}{2006/10/02}{Added \cs{latintext}}
1037 % \changes{v1.51}{2009/05/14}{Changed \cs{latintext} to \cs{latinparatext}
1038 % because of a clash with the babel package}
1039 % \begin{macrocode}
1040 \providecommand*{\latintext}{%
1041 \PackageWarning{fonttable}{\protect\latintext\space may be overridden by the
1042 babel package \MessageBreak use
1043 \protect\latinparatext\space instead}}
1044 \newcommand*{\latinparatext}{%
1045 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam
1046 lobortis facilisis sem. Nullam nec mi et neque pharetra
1047 sollicitudin. Praesent imperdiet mi nec ante. Donec ullamcorper,
1048 felis non sodales commodo, lectus velit ultrices augue, a
1049 dignissim nibh lectus placerat pede. Vivamus nunc nunc, molestie
1050 ut, ultricies vel, semper in, velit. Ut porttitor. Praesent in
1051 sapien. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
1052 Duis fringilla tristique neque. Sed interdum libero ut metus.
1053 Pellentesque placerat. Nam rutrum augue a leo. Morbi sed elit sit
1054 amet ante lobortis sollicitudin. Praesent blandit blandit mauris.
1055 Praesent lectus tellus, aliquet aliquam, luctus a, egestas a,
1056 turpis. Mauris lacinia lorem sit amet ipsum. Nunc quis urna dictum
1057 turpis accumsan semper.\par}
1058
1059 % \end{macrocode}
1060 % \end{macro}
1061 % \end{macro}
1062 %
1063 % \begin{macro}{\simpletext}
1064 % \begin{macro}{\fulltext}
1065 % \begin{macro}{\moreknutext}
1066 % \begin{macro}{\knunames}
1067 % \cs{simpletext} kills off \cs{moreknutext} and \cs{knunames}.
1068 % \cs{fulltext} restores \cs{moreknutext} and \cs{knunames}.
1069 % Make \cs{fulltext} the default.
1070 % \begin{macrocode}
1071 \newcommand*{\simpletext}{\let\moreknutext\relax \let\knunames\relax}
1072 \newcommand*{\fulltext}{\let\moreknutext\@moreknutext \let\knunames\@knunames}
1073 \fulltext
1074
1075 % \end{macrocode}
1076 % \end{macro}
1077 % \end{macro}
1078 % \end{macro}
1079 % \end{macro}
1080 %
1081 % \begin{macro}{fonttexts}
1082 % \cs{fonttexts}\marg{font}\marg{text} typesets \meta{text} using \meta{font} (e.g.
1083 % auncl10).
1084 % \changes{v1.1}{2006/10/02}{Added \cs{fonttexts}}
1085 % \begin{macrocode}
1086 \def\fonttexts#1#2{%
1087 \def\f@tfontname{#1}%
1088 \bgroup
1089 \f@tstartfont
1090 #2
1091 \egroup}
1092
1093 % \end{macrocode}
1094 % \end{macro}
1095 %
1096 % \begin{macro}{\regulartexts}
1097 % \cs{regulartext}\marg{fontspec}\marg{text} typesets \meta{text} using \meta{fontspec}
1098 % (e.g., \cs{aunclfamily}).
1099 % \changes{v1.1}{2006/10/02}{Added \cs{regulartexts}}
1100 % \begin{macrocode}
1101 \def\regulartexts#1#2{%
1102 \bgroup
1103 #1 #2
1104 \egroup}
1105
1106 % \end{macrocode}
1107 % \end{macro}
1108 %
1109 % \begin{macro}{\aztext}
1110 % \begin{macro}{\AZtext}
1111 % \begin{macro}{\digitstext}
1112 % \begin{macro}{\punctext}
1113 % The various characters used for Latin texts.
1114 % \changes{v1.2}{2008/05/08}{Added \cs{aztext}, \cs{AZtext}, \cs{digitstext}
1115 % and \cs{punctext}}
1116 % \begin{macrocode}
1117 \newcommand*{\aztext}{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}
1118 \newcommand*{\AZtext}{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}
1119 \newcommand*{\digitstext}{0 1 2 3 4 5 6 7 8 9}
1120 \newcommand*{\punctext}{` ! @ \$ \& * ( ) \_ - + = [ ] < > \{ \} : ; ' , . ? /}
1121
1122 % \end{macrocode}
1123 % \end{macro}
1124 % \end{macro}
1125 % \end{macro}
1126 % \end{macro}
1127 %
1128 % \subsection{Testing a glyph}
1129 %
1130 % This is a reimplementation of Donald Knuth's \texttt{testfont.tex} which
1131 % is available from CTAN and there is also a commented version in Appendix H
1132 % of \textit{The METAFONT Book}.
1133 %
1134 % \begin{macro}{\fnthours}
1135 % \begin{macro}{\f@ttwodigits}
1136 % The time of day on a 24 hour clock.
1137 % \begin{macrocode}
1138 %%%%%%%% using \@tempcnta for Knuth's \m and \@tempcntb for his \n
1139 \newcommand*{\fnthours}{\@tempcntb=\time \divide\@tempcntb 60
1140 \@tempcnta=-\@tempcntb \multiply\@tempcnta 60 \advance\@tempcnta \time
1141 \f@ttwodigits\@tempcntb:\f@ttwodigits\@tempcnta}
1142 \newcommand*{\f@ttwodigits}[1]{\ifnum #1<10 0\fi \number#1}
1143
1144 % \end{macrocode}
1145 % \end{macro}
1146 % \end{macro}
1147 %
1148 % \begin{macro}{\f@tgettsechars}
1149 % \begin{macro}{\f@ttchar}
1150 % \begin{macro}{\f@tschar}
1151 % \begin{macro}{\f@techar}
1152 % \cs{f@tgettsechars}\marg{T}\marg{S}\marg{E} gets three characters
1153 % and \cs{chardef}s \cs{f@ttchar} to \meta{T} (the test character),
1154 % \cs{f@tschar} to \meta{S} (start character) and \cs{f@techar}
1155 % to \meta{E} (the end character).
1156 % \begin{macrocode}
1157 \newcommand*{\f@tgettsechars}[3]{%
1158 \chardef\f@ttchar=#1 \chardef\f@tschar=#2 \chardef\f@techar=#3}
1159
1160 % \end{macrocode}
1161 % \end{macro}
1162 % \end{macro}
1163 % \end{macro}
1164 % \end{macro}
1165 %
1166 % \begin{macro}{\glyphmixture}
1167 % \begin{macro}{\f@tmixpattern}
1168 % \begin{macro}{\f@tdomix}
1169 % \cs{glyphmixture}\marg{T}\marg{S}\marg{E} sets a mix of \meta{T} within
1170 % the glyph range from \meta{S} to \meta{E} according to the pattern
1171 % \cs{f@tmixpattern}. The work is done by \cs{f@tdomix}.
1172 % \begin{macrocode}
1173 \newcommand*{\glyphmixture}[3]{\f@tgettsechars{#1}{#2}{#3}%
1174 \f@tdomix\f@tmixpattern}
1175 \newcommand*{\f@tmixpattern}{\f@tocta\f@toctb\f@tocta\f@tocta\f@toctb\f@toctb\f@tocta\f@tocta\f@tocta\f@toctb\f@toctb\f@toctb\f@tocta\f@toctb}
1176 \newcommand*{\f@tdomix}[1]{\par\chardef\f@tocta=\f@ttchar \@tempcntb=\f@tschar
1177 \loop \chardef\f@toctb=\@tempcntb #1\endgraf
1178 \ifnum \@tempcntb<\f@techar \advance\@tempcntb \@ne \repeat}
1179
1180 % \end{macrocode}
1181 % \end{macro}
1182 % \end{macro}
1183 % \end{macro}
1184 %
1185 % \begin{macro}{\glyphalternation}
1186 % \begin{macro}{\f@taltpattern}
1187 % These are similar to \cs{glyphmixture} and \cs{f@tmixpattern} except
1188 % that the glyphs are alternated.
1189 % \begin{macrocode}
1190 \newcommand*{\glyphalternation}[3]{\f@tgettsechars{#1}{#2}{#3}%
1191 \f@tdomix\f@taltpattern}
1192 \newcommand*{\f@taltpattern}{\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta\f@toctb\f@tocta}
1193
1194 % \end{macrocode}
1195 % \end{macro}
1196 % \end{macro}
1197 %
1198 % \begin{macro}{\f@tdisc}
1199 % For breaking long lines so that the test character will be at the end
1200 % of one line and repeated at the start of the next one.
1201 % \begin{macrocode}
1202 \newcommand*{\f@tdisc}{\discretionary{\f@ttchar}{\f@ttchar}{\f@ttchar}}
1203
1204 % \end{macrocode}
1205 % \end{macro}
1206 %
1207 % \begin{macro}{\glyphseries}
1208 % \begin{macro}{\f@tdoseries}
1209 % \cs{glyphseries}\marg{T}\marg{S}\marg{E} puts the test character \meta{T}
1210 % between all the others in the range \meta{S} to \meta{E}. The work is
1211 % done by \cs{f@tdoseries}.
1212 % \begin{macrocode}
1213 \newcommand*{\glyphseries}[3]{\f@tgettsechars{#1}{#2}{#3}%
1214 \f@tdisc\f@tdoseries\f@tschar\f@techar\par}
1215 \newcommand*{\f@tdoseries}[2]{\@tempcntb=#1\relax
1216 \loop\char\@tempcntb\f@tdisc
1217 \ifnum\@tempcntb<#2\advance\@tempcntb \@ne \repeat}
1218
1219 % \end{macrocode}
1220 % \end{macro}
1221 % \end{macro}
1222 %
1223 % \begin{macro}{\glyphalphabet}
1224 % \begin{macro}{\GLYPHALPHABET}
1225 % \begin{macro}{\f@tcomplower}
1226 % \begin{macro}{\f@tcompupper}
1227 % \cs{glyphalphabet}\marg{T} inserts the test glyph \meta{T} between the lowercase
1228 % alphabetic characters. Similarly \cs{GLYPHALPHABET}\marg{T} does
1229 % the same with the uppercase characters. The work is done by, respectively,
1230 % \cs{f@tcomplower} and \cs{f@tcompupper}.
1231 % \begin{macrocode}
1232 \newcommand*{\glyphalphabet}{\f@tcomplower}
1233 \newcommand*{\GLYPHALPHABET}{\f@tcompupper}
1234 \newcommand*{\f@tcomplower}[1]{\chardef\f@ttchar=#1
1235 \f@tdisc\f@tdoseries{`a}{`z}\f@tdoseries{31}{34}\par}
1236 \newcommand*{\f@tcompupper}[1]{\chardef\f@ttchar=#1
1237 \f@tdisc\f@tdoseries{`A}{`Z}\f@tdoseries{35}{37}\par}
1238
1239 % \end{macrocode}
1240 % \end{macro}
1241 % \end{macro}
1242 % \end{macro}
1243 % \end{macro}
1244 %
1245 % \begin{macro}{\glyphlowers}
1246 % \begin{macro}{\glyphuppers}
1247 % \begin{macro}{\glyphdigits}
1248 % \begin{macro}{\f@tclc}
1249 % \begin{macro}{\f@tcuc}
1250 % \begin{macro}{\f@tdgs}
1251 % \begin{macro}{\f@tdocomprehensive}
1252 % These macros generate an extended mix of characters of a particular kind.
1253 % The work is done by \cs{f@tdocomprensive} with \cs{f@tclc}, \cs{f@tcuc}, and
1254 % \cs{f@tdgs} setting up the glyph sets.
1255 % \begin{macrocode}
1256 \newcommand*{\glyphlowers}{\f@tdocomprehensive\f@tclc{`a}{`z}{31}{34}}
1257 \newcommand*{\glyphuppers}{\f@tdocomprehensive\f@tcuc{`A}{`Z}{35}{37}}
1258 \newcommand*{\glyphdigits}{\f@tdocomprehensive\f@tdgs{`0}{`4}{`5}{`9}}
1259 \newcommand*{\f@tdocomprehensive}[5]{\par\chardef\f@ttchar=#2
1260 \loop{#1} \ifnum\f@ttchar<#3\@tempcnta=\f@ttchar\advance\@tempcnta \@ne
1261 \chardef\f@ttchar=\@tempcnta \repeat
1262 \chardef\f@ttchar=#4
1263 \loop{#1} \ifnum\f@ttchar<#5\@tempcnta=\f@ttchar\advance\@tempcnta \@ne
1264 \chardef\f@ttchar=\@tempcnta \repeat}
1265 \newcommand*{\f@tclc}{\f@tdisc\f@tdoseries{`a}{`z}\f@tdoseries{31}{34}\par}
1266 \newcommand*{\f@tcuc}{\f@tdisc\f@tdoseries{`A}{`Z}\f@tdoseries{35}{37}\par}
1267 \newcommand*{\f@tdgs}{\f@tdisc\f@tdoseries{`0}{`9}\par}
1268
1269 % \end{macrocode}
1270 % \end{macro}
1271 % \end{macro}
1272 % \end{macro}
1273 % \end{macro}
1274 % \end{macro}
1275 % \end{macro}
1276 % \end{macro}
1277 %
1278 % \begin{macro}{\glyphpunct}
1279 % \begin{macro}{\f@tdopunct}
1280 % \cs{glyphpunct} sets punctuation marks in combination with different
1281 % sorts of letters. The work is done by \cs{f@tdopunct}.
1282 % \begin{macrocode}
1283 \newcommand*{\glyphpunct}{\par\f@tdopunct{min}\f@tdopunct{pig}\f@tdopunct{hid}
1284 \f@tdopunct{HIE}\f@tdopunct{TIP}\f@tdopunct{fluff}
1285 \$1,234.56 + 7/8 = 9\% @ \#0\par}
1286 \newcommand*{\f@tdopunct}[1]{#1,\ #1:\ #1;\ `#1'\
1287 ?`#1?\ !`#1!\ (#1)\ [#1]\ #1*\ #1.\par}
1288
1289 % \end{macrocode}
1290 % \end{macro}
1291 % \end{macro}
1292 %
1293 % The end of the package.
1294 % \begin{macrocode}
1295 %</pack>
1296 % \end{macrocode}
1297 %
1298 %
1299 %
1300 %
1301 % \Finale
1302 \endinput
1303
1304 %% \CharacterTable
1305 %% {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
1306 %% 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
1307 %% Digits \0\1\2\3\4\5\6\7\8\9
1308 %% Exclamation \! Double quote \" Hash (number) \#
1309 %% Dollar \$ Percent \% Ampersand \&
1310 %% Acute accent \' Left paren \( Right paren \)
1311 %% Asterisk \* Plus \+ Comma \,
1312 %% Minus \- Point \. Solidus \/
1313 %% Colon \: Semicolon \; Less than \<
1314 %% Equals \= Greater than \> Question mark \?
1315 %% Commercial at \@ Left bracket \[ Backslash \\
1316 %% Right bracket \] Circumflex \^ Underscore \_
1317 %% Grave accent \` Left brace \{ Vertical bar \|
1318 %% Right brace \} Tilde \~}
1319
1320