summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-prept1font.html
blob: c9d0d1aabcbd1392ba162594cd205c513dd8dfb1 (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
<head>
<title>UK TeX FAQ -- question label prept1font</title>
</head><body>
<h3>Preparing a Type 1 font</h3>
<p/>The process of installing a Type 1 font set is rather convoluted, and
we will deal with it in two chunks: first (in the present answer)
preparing the font for installation, and second 
<a href="FAQ-instt1font.html">installing a Type 1 font</a>).
<p/>Many fonts are supplied in (La)TeX ready form: such fonts need no
preparation, and may be installed immediately.
<p/>However, if you purchase a font from a Type foundry (either direct or
via one of the web stores), you are likely to need to &#8216;prepare&#8217; it for
use with (La)TeX.  The rest of this answer discusses this preparation.
<ul>
<li> Acquire the font.  A very small set of Type 1 fonts is installed
  in most PostScript printers you will encounter.  For those few (whose use
  is covered by the basic PSNFSS package), you don&#8217;t need the
  Type 1 font itself, to be able to print using the font.
<p/>  For all the myriad other Type 1 fonts, to be able to print using
  the font you need the Type 1 file itself.  Some of these are
  available for free (they&#8217;ve either been donated to the public
  domain, or were developed as part of a free software project), but
  the vast majority are commercial products, requiring you to spend
  real money.
<li> Acquire the fonts&#8217; AFM files.  AFM files contain
  information from the font foundry, about the sizes of the characters
  in the font, and how they fit together.  One measure of the quality
  of a font-supplier is that they provide the AFM files by
  default: if the files are not available, you are unlikely to be able
  to use the font with (La)TeX.
<li> Rename the AFM files and the Type 1 files to match the
  <a href="FAQ-fontname.html">Berry font naming scheme</a>.
<li> Generate TeX metric files from the AFM files.  The
  commonest tool for this task is <i>fontinst</i>; the package
  documentation helps, but other guides are available (see below).
  The simplest possible script to pass to <i>fontinst</i> is:
  <blockquote>
<pre>
\latinfamily{xyz}{}
\bye
</pre>
  </blockquote><p>
  where <code>xyz</code> is the Berry name of the font family.  This
  simple script is adequate for most purposes: its output covers the
  font family in both T1 and OT1 font encodings.  Nevertheless,
  with fancier fonts, more elaborate things are possible with
  <i>fontinst</i>: see its documentation for details.
<p/>  <i>Fontinst</i> also generates map files, and LaTeX font
  definition (<code>.fd</code>) files.
</ul>
Having traversed this list, you have a set of font files ready for
installation.
<dl>
<dt><tt><i>fontinst.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/fonts/utilities/fontinst.zip">fonts/utilities/fontinst</a> (or <a href="http://www.tex.ac.uk/tex-archive/fonts/utilities/fontinst/">browse the directory</a>)
<dt><tt><i>Type 1 installation guide</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/info/Type1fonts/fontinstallationguide/fontinstallationguide.pdf">info/Type1fonts/fontinstallationguide/fontinstallationguide.pdf</a>
</dl>
<p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=prept1font">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=prept1font</a>
</body>