| 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: <a name="Long%20naming%20scheme">Long naming scheme</a>, |
| 23 |
Previous: <a rel="previous" accesskey="p" href="Name-mapping-file.html#Name%20mapping%20file">Name mapping file</a>, |
| 24 |
Up: <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 naming scheme for long names</h3> |
| 29 |
|
| 30 |
<p>Once we allow ourselves long names, we can construct a naming scheme |
| 31 |
to handle arbitrary fonts without much difficulty. Here is one |
| 32 |
proposal, based on the X Window System font naming conventions. |
| 33 |
|
| 34 |
<pre class="example"> <var>supplier</var>-<var>family</var>-<var>weight</var>-<var>variants</var>-<var>width</var>-<var>encoding</var>--<var>size</var> |
| 35 |
</pre> |
| 36 |
|
| 37 |
<p><var>supplier</var> is the usual <code>Adobe</code>, <code>Autologic</code>, etc., as |
| 38 |
well as <code>unknown</code> or <code>bizarre</code>--this last meaning the rest of |
| 39 |
the name is nonstandard. If the <var>supplier</var> is missing, i.e., the |
| 40 |
name starts with a <code>-</code>, "public domain" is assumed. For fonts |
| 41 |
made by individuals, the initials of the designer would probably make a |
| 42 |
good <var>supplier</var>. |
| 43 |
|
| 44 |
<p><var>family</var> is <code>ComputerModern</code> or <code>Times</code> or whatever. |
| 45 |
|
| 46 |
<p>Everything else is optional. The <code>--</code> before the <var>size</var> lets |
| 47 |
one specify a name with, say, a weight and variants, but then skip the |
| 48 |
<var>width</var> and <var>encoding</var>, but still be able to |
| 49 |
give a size. |
| 50 |
|
| 51 |
<p><var>weight</var> and <var>width</var> are as described earlier. |
| 52 |
|
| 53 |
<p>If there is more than one variant, they are separated with some |
| 54 |
character other than <code>-</code>, say <code>=</code>: |
| 55 |
<pre class="example"> B+H-Lucida-Bold-Sans=Typewriter--10 |
| 56 |
</pre> |
| 57 |
|
| 58 |
<p><var>encoding</var> is what Metafont calls the |
| 59 |
<code>font_coding_scheme</code>--the layout of the characters in the font. |
| 60 |
For example, <code>Cork</code> or <code>ISOLatin1</code> or <code>AdobeAlternate</code>. |
| 61 |
|
| 62 |
<p>Names are case-sensitive, for consistency with the rest of TeX and |
| 63 |
with PostScript, etc. Spaces cannot be used in the name, to make it |
| 64 |
easier for TeX to parse. Likewise, characters with default category |
| 65 |
codes other than 11 (letter) or 12 (other) should not be used. |
| 66 |
|
| 67 |
<p>Another possibility is to forget all the above, and simply use the |
| 68 |
vendor's name (perhaps prefixed by the vendor): |
| 69 |
<code>Times-Roman</code>. |
| 70 |
|
| 71 |
</body></html> |
| 72 |
|