28.03.2013 Views

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

Guide to LaTeX (4th Edition) (Tools and Techniques

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

234 Chapter 10. PostScript <strong>and</strong> PDF<br />

Table 10.1: The psnfss packages <strong>and</strong> their fonts<br />

Package \rmfamily \sffamily \ttfamily<br />

times.sty Times-Roman Helvetica Courier<br />

palatino.sty Palatino Helvetica Courier<br />

newcent.sty NewCenturySchlbk AvantGarde Courier<br />

bookman.sty Bookman AvantGarde Courier<br />

avant.sty AvantGarde<br />

helvet.sty Helvetica<br />

drivers can only h<strong>and</strong>le the T E X pixel fonts described in Appendix G (also<br />

known as type 3 fonts). Some drivers, in particular the moni<strong>to</strong>r previewers<br />

xdvi <strong>and</strong> windvi, will also invoke programs <strong>to</strong> generate the bitmap .pk<br />

files from the PostScript.pfb source files.<br />

Why bother <strong>to</strong> use these packages when dvips is capable of including<br />

the pixel fonts just as well? The answer is that the st<strong>and</strong>ard PostScript<br />

fonts are well known from other applications, <strong>and</strong> there are additional<br />

commercially available fonts in PostScript format; they therefore offer a<br />

wider choice than simply the traditional Computer Modern fonts that are<br />

limited <strong>to</strong> T E X <strong>and</strong> L AT E X.<br />

Furthermore, although the pixel fonts can be included in PDF output,<br />

the results viewed on the moni<strong>to</strong>r are simply atrocious. They are slow<br />

<strong>to</strong> draw <strong>and</strong> appear very fuzzy. (They do print all right, however.) PDF<br />

should make use of PostScript fonts exclusively. In Section G.6 we explain<br />

how the st<strong>and</strong>ard Computer Modern <strong>and</strong> Extended Modern fonts are now<br />

available in PostScript encoding, especially for this need.<br />

10.1.3 Installing PostScript fonts<br />

The packages listed in the previous section invoke the PostScript fonts by means<br />

! of the NFSS system, provided they have been properly included in the installation.<br />

This means that the following files must be present:<br />

.tfm the font metric files for both the virtual <strong>and</strong> raw fonts;<br />

.fd the NFSS font definition files associating the font attributes <strong>to</strong> precise<br />

virtual font names; these <strong>and</strong> the.tfm files are the only ones read by L AT E X<br />

itself;<br />

.vf virtual font files that instruct the DVI driver how <strong>to</strong> produce the characters;<br />

usually this refers <strong>to</strong> characters in a real font with different encoding;<br />

.map mapping files that tell the dvips driver the true internal names of the real<br />

fonts, plus any re-encodings or dis<strong>to</strong>rtions that must be undertaken.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!