summaryrefslogtreecommitdiff
path: root/info/fontname/html/Long-naming-scheme.html
blob: 2c0751f1d20086682d71dbd24b423ea775c5cd09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This document is in the public domain and may be used freely. -->
<!-- Created by GNU Texinfo 6.0, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Filenames for TeX fonts: Long naming scheme</title>

<meta name="description" content="Filenames for TeX fonts: Long naming scheme">
<meta name="keywords" content="Filenames for TeX fonts: Long naming scheme">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="General-index.html#General-index" rel="index" title="General index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Long-names.html#Long-names" rel="up" title="Long names">
<link href="Font-name-lists.html#Font-name-lists" rel="next" title="Font name lists">
<link href="Name-mapping-file.html#Name-mapping-file" rel="prev" title="Name mapping file">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space: nowrap}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: serif; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>


</head>

<body lang="en">
<a name="Long-naming-scheme"></a>
<div class="header">
<p>
Previous: <a href="Name-mapping-file.html#Name-mapping-file" accesskey="p" rel="prev">Name mapping file</a>, Up: <a href="Long-names.html#Long-names" accesskey="u" rel="up">Long names</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="General-index.html#General-index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="A-naming-scheme-for-long-names"></a>
<h3 class="section">3.2 A naming scheme for long names</h3>

<a name="index-long-naming-scheme"></a>

<a name="index-X-Window-System-font-names"></a>
<p>Once we allow ourselves long names, we can construct a naming scheme
to handle arbitrary fonts without much difficulty.  Here is one
proposal, based on the X Window System font naming conventions.
</p>
<div class="example">
<pre class="example"><var>supplier</var>-<var>family</var>-<var>weight</var>-<var>variants</var>-<var>width</var>-<var>encoding</var>--<var>size</var>
</pre></div>

<p><var>supplier</var> is the usual <code>Adobe</code>, <code>Autologic</code>, etc., as
well as <code>unknown</code> or <code>bizarre</code>&mdash;this last meaning the rest of
the name is nonstandard.  If the <var>supplier</var> is missing, i.e., the
name starts with a <code>-</code>, &ldquo;public domain&rdquo; is assumed.  For fonts
made by individuals, the initials of the designer would probably make a
good <var>supplier</var>.
</p>
<p><var>family</var> is <code>ComputerModern</code> or <code>Times</code> or whatever.
</p>
<p>Everything else is optional.  The <code>--</code> before the <var>size</var> lets
one specify a name with, say, a weight and variants, but then skip the
<var>width</var> and <var>encoding</var>, but still be able to
give a size.
</p>
<p><var>weight</var> and <var>width</var> are as described earlier.
</p>
<p>If there is more than one variant, they are separated with some
character other than &lsquo;<samp>-</samp>&rsquo;, say &lsquo;<samp>=</samp>&rsquo;:
</p><div class="example">
<pre class="example">B+H-Lucida-Bold-Sans=Typewriter--10
</pre></div>

<a name="index-font_005fcoding_005fscheme"></a>
<p><var>encoding</var> is what Metafont calls the
<code>font_coding_scheme</code>&mdash;the layout of the characters in the font.
For example, &lsquo;<samp>Cork</samp>&rsquo; or &lsquo;<samp>ISOLatin1</samp>&rsquo; or &lsquo;<samp>AdobeAlternate</samp>&rsquo;.
</p>
<a name="index-category-codes"></a>
<p>Names are case-sensitive, for consistency with the rest of TeX and
with PostScript, etc.  Spaces cannot be used in the name, to make it
easier for TeX to parse.  Likewise, characters with default category
codes other than 11 (letter) or 12 (other) should not be used.
</p>
<p>Another possibility is to forget all the above, and simply use the
vendor&rsquo;s name (perhaps prefixed by the vendor):
&lsquo;<samp>Times-Roman</samp>&rsquo;.
</p>

<hr>
<div class="header">
<p>
Previous: <a href="Name-mapping-file.html#Name-mapping-file" accesskey="p" rel="prev">Name mapping file</a>, Up: <a href="Long-names.html#Long-names" accesskey="u" rel="up">Long names</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="General-index.html#General-index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>