summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-usepsfont.html
blob: 56621c876240c266f0078abe0889c0cd2eb4f5f0 (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
<head>
<title>UK TeX FAQ -- question label usepsfont</title>
</head><body>
<h3>Using PostScript fonts with TeX</h3>
<p/>In order to use PostScript fonts, TeX needs
<em>metric</em> (called TFM) files. Several sets of metrics are
available from the archives; for mechanisms for generating new ones,
see <a href="FAQ-metrics.html">metrics for PostScript fonts</a>.  You
also need the fonts themselves; PostScript printers come with a set of
fonts built in, but to extend your repertoire you almost invariably
need to buy from one of the many commercial font vendors (see, for
example, <a href="FAQ-psfchoice.html">&ldquo;choice of fonts&rdquo;</a>).
<p/>If you use LaTeX2e, the best way to get PostScript fonts into your
document is to use the PSNFSS package maintained by Walter
Schmidt.  The LaTeX3 project team declare that PSNFSS is
&ldquo;required&rdquo;, and bug reports may be submitted via the 
<a href="FAQ-latexbug.html">LaTeX bugs system</a>. 
PSNFSS gives you a set of packages for changing the default
roman, sans-serif and typewriter fonts; <em>e.g</em>., the
<i>mathptmx</i> package will set up <i>Times</i>
<i>Roman</i> as the main text font (and introduces mechanisms to
typeset mathematics using <i>Times</i> and various more-or-less
matching fonts),  while package <i>avant</i> changes the sans-serif
family to <i>AvantGarde</i>, and <i>courier</i> changes the
typewriter font to <i>Courier</i>.  To go with these
packages, you need the font metric files
and font description (<i>.fd</i>) files for each font family you
want to use.  For convenience,
metrics for the &lsquo;common 35&rsquo; PostScript fonts found in most PostScript printers
are provided with PSNFSS, packaged as the &ldquo;Laserwriter set&rdquo;.
<p/>For older versions of LaTeX there are various schemes, of which the
simplest to use is probably the PSLaTeX macros distributed with
<i>dvips</i>.
<p/>For Plain TeX, you load whatever fonts you like; if the encoding of
the fonts is not the same as Computer Modern it will be up to you to
redefine various macros and accents, or you can use the font
re-encoding mechanisms available in many drivers and in
<i>ps2pk</i> and <i>afm2tfm</i>.
<p/>Victor Eijkhout&rsquo;s <a href="FAQ-lollipop.html">Lollipop package</a>
supports declaration of font families and styles in a similar way to
LaTeX&rsquo;s NFSS, and so is easy to use with PostScript fonts.
<p/>Some common problems encountered are discussed elsewhere
(see <a href="FAQ-psfontprob.html">problems with PS fonts</a>).
<dl>
<dt><tt><i>Metrics for the &lsquo;Laserwriter&rsquo; set of 35 fonts</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/psnfss/lw35nfss.zip">macros/latex/required/psnfss/lw35nfss.zip</a>
<dt><tt><i>lollipop</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/lollipop.zip">macros/lollipop</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/lollipop.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/lollipop/">browse</a>)
<dt><tt><i>psnfss</i></tt><dd><a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/psnfss.zip">macros/latex/required/psnfss</a> (<a href="ftp://cam.ctan.org/tex-archive/macros/latex/required/psnfss.tar.gz">gzipped tar</a>, <a href="http://www.tex.ac.uk/tex-archive/macros/latex/required/psnfss/">browse</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=usepsfont">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=usepsfont</a>
</body>