summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-usepsfont.html
blob: 91d16d74d688825730dd4ff3f387fefb2c04eff6 (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
<head>
<title>UK TeX FAQ -- question label usepsfont</title>
</head><body>
<h3>Using Adobe Type 1 fonts with TeX</h3>
<p/>In order to use any font, TeX needs a
<em>metric</em> file (TFM file).  Several sets of metrics for
common Adobe Type 1 fonts 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 usually
need to buy from one of the many commercial font vendors (see, for
example, <a href="FAQ-psfchoice.html">&#8220;choice of fonts&#8221;</a>).
<p/>If you use LaTeX2e, access to your printer&#8217;s fonts is offered by the
PSNFSS package; the LaTeX3 project team declare that
PSNFSS is a &#8220;required&#8221; part of a LaTeX distribution, 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 &#8216;common 35&#8217; PostScript fonts found in most PostScript printers
are provided with PSNFSS, packaged as the &#8220;Laserwriter set&#8221;.
<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/>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 &#8216;Laserwriter&#8217; set of 35 fonts</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/required/psnfss/lw35nfss.zip">macros/latex/required/psnfss/lw35nfss.zip</a>; <a href="http://mirror.ctan.org//help/Catalogue/entries/lw35nfss.html">catalogue entry</a>
<dt><tt><i>psnfss</i></tt><dd><a href="http://mirror.ctan.org/macros/latex/required/psnfss.zip">macros/latex/required/psnfss</a> (or <a href="http://mirror.ctan.org/macros/latex/required/psnfss/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/psnfss.html">catalogue entry</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>