Debian Codegraph @

texmf-dist/doc/fonts/fontname/Name-mapping-file.html

raw
1 <html lang="en">
2 <head>
3 <title>Filenames for TeX fonts</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="Filenames for TeX fonts">
6 <meta name="generator" content="makeinfo 4.6">
7 <!--
8 This document is in the public domain and may be used freely.-->
9 <meta http-equiv="Content-Style-Type" content="text/css">
10 <style type="text/css"><!--
11 pre.display { font-family:inherit }
12 pre.format { font-family:inherit }
13 pre.smalldisplay { font-family:inherit; font-size:smaller }
14 pre.smallformat { font-family:inherit; font-size:smaller }
15 pre.smallexample { font-size:smaller }
16 pre.smalllisp { font-size:smaller }
17 --></style>
18 </head>
19 <body>
20 <div class="node">
21 <p>
22 Node:&nbsp;<a name="Name%20mapping%20file">Name mapping file</a>,
23 Next:&nbsp;<a rel="next" accesskey="n" href="Long-naming-scheme.html#Long%20naming%20scheme">Long naming scheme</a>,
24 Up:&nbsp;<a rel="up" accesskey="u" href="Long-names.html#Long%20names">Long names</a>
25 <hr><br>
26 </div>
27
28 <h3 class="section">A fontname mapping file</h3>
29
30 <p>At the moment, most implementations of TeX look up a TFM file (as
31 part of the <code>\font</code> command), by searching for a file with the name
32 given by the user (possibly in any of series of directories). But if we
33 also looked TFM names up in <em>another</em> file (or set of files), which
34 specifies the actual filename, the fontname given in the TeX source
35 file could be almost anything at all, of any length.
36
37 <p>In version 5.851d of Web2c, I implemented this mapping file. Each file
38 <code>texfonts.map</code> in a search path is read for abbreviations. The file
39 has a straightforward format: each line specifies the filename and the
40 TeX name for one font, separated by whitespace. Extra information on
41 the line is ignored; then more information could be specified for the
42 benefit of DVI-reading programs in the same file. Comments start with
43 <code>%</code> and continue to the end of the line.
44
45 <p>Besides allowing long names, this sort of mapping file has other
46 benefits. TeX source or DVI files can be more easily transported,
47 because the font names in a particular file can be made work on every
48 system. Also, when combined with a consistent naming scheme, macros
49 could be written to access any of a number of fonts. Right now, each
50 font family has to have specialized macros written to deal with it.
51
52 <p>Incidentally, Professor Knuth has approved this as a legitimate
53 "system-dependent" extension; a TeX with such a feature can still
54 be called "TeX".
55
56 </body></html>
57