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.

G<br />

T E X Fonts<br />

Computers work exclusively with numbers, or more precisely, only with<br />

bits which may be interpreted as numbers. They do not know the difference<br />

between the letter A <strong>and</strong> an apple, or that either even exists. For text<br />

processing, all symbols, both input <strong>and</strong> output, need <strong>to</strong> be represented<br />

as numbers somehow. The association between number <strong>and</strong> symbol is<br />

called the encoding or layout. The latter term derives from the common<br />

method of illustrating the encoding in the form of a table.<br />

Encoding tables are by no means st<strong>and</strong>ard. The st<strong>and</strong>ard ascii scheme<br />

is just one of several, <strong>and</strong> it is limited <strong>to</strong> 7 bits, or 128 characters. There<br />

are 8-bit (256 characters) versions as well, in fact, a large number exist,<br />

tailored <strong>to</strong> different computer systems <strong>and</strong> languages. The question of<br />

coding the input for L AT E X documents with more than 7 bits are addressed<br />

in Sections 2.5.9 <strong>and</strong> D.5.<br />

In this appendix, we look at how the underlying T E X program deals<br />

with output fonts, their nomenclature, <strong>and</strong> their encoding tables.<br />

G.1 Font metrics <strong>and</strong> bitmaps<br />

When T E X decides <strong>to</strong> output character nn in a particular font, all it needs<br />

<strong>to</strong> know is how much room <strong>to</strong> leave for it. T E X does not care what the<br />

character looks like, for that is the task of the DVI driver afterwards.<br />

Information about the characters in each font are s<strong>to</strong>red in various<br />

files, all bearing the root name of the font but with different extensions.<br />

This information is divided in<strong>to</strong> files that contain only the sizes of each<br />

symbol, <strong>and</strong> those with the actual drawing or image data.<br />

.tfm T E X font metric files are the only font files read in by T E X itself.<br />

They contain the sizes of the characters, such as width, height, <strong>and</strong><br />

depth. For slanted fonts, they also possess the ‘italic correction’<br />

for each letter. Furthermore, they specify for which letter combinations<br />

a different spacing is required, such as AV instead of AV,<br />

487

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

Saved successfully!

Ooh no, something went wrong!