summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-metrics.html
blob: 4b4cd03e786bd51e1b11465af500330ac0236672 (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
<head>
<title>UK TeX FAQ -- question label metrics</title>
</head><body>
<h3>TeX font metric files for PostScript fonts</h3>
<p/>Reputable font vendors such as Adobe supply metric files for each
font, in AFM (Adobe Font Metric) form; these can be converted
to TFM (TeX Font Metric) form. Most modern distributions have
prebuilt metrics which will be more than enough for many people; but you may
need to do the conversion yourself if you have special needs or
acquire a new font. One important question is the <em>encoding</em> of
(Latin character) fonts; while we all more or less agree about the
position of about 96 characters in fonts (the basic ASCII set), the
rest of the (typically) 256 vary. The most obvious problems are with
floating accents and special characters such as the &#8216;pounds sterling&#8217;
sign. There are three ways of dealing with this: either you change the
TeX macros which reference the characters (not much fun, and
error-prone); or you change the encoding of the font (easier than you
might think); or you use <a href="FAQ-virtualfonts.html">virtual fonts</a> to
<em>pretend</em> to TeX that the encoding is the same as it is used to.
LaTeX2e has facilities for dealing with fonts in different
encodings; read the <a href="FAQ-books.html"><em>LaTeX Companion</em></a> for
more details.  In practice, if you do much non-English (but Latin
script) typesetting, you are strongly recommended to use the
<i>fontenc</i> package with option &#8216;<code>T1</code>&#8217; to select
<a href="FAQ-ECfonts.html">&#8216;Cork&#8217;</a> encoding.
<p/>An alternative favoured by some is Y&#38;Y&#8217;s &#8220;private&#8221; LY1 encoding,
which is designed to sit well with &#8220;Adobe standard&#8221; encoded fonts.
Basic macro support of LY1 is available: note that the
&#8220;relation with Adobe&#8217;s encoding&#8221; means that the LY1 user
needs no virtual fonts.
<p/>Alan Jeffrey&#8217;s <i>fontinst</i> package is an AFM to
TFM converter written in TeX; it is used to generate the
files used by LaTeX2e&#8217;s PSNFSS package to support use of
PostScript fonts. It is a sophisticated package, not for the faint-hearted,
but is powerful enough to cope with most needs.  Much of its power
relies on the use of <a href="FAQ-virtualfonts.html">virtual fonts</a>.
<p/>For slightly simpler problems, Rokicki&#8217;s <i>afm2tfm</i>,
distributed with <i>dvips</i>, is fast and
efficient; note that the metrics and styles that come with
<i>dvips</i> are <em>not</em> currently LaTeX2e compatible.
<p/>For the Macintosh (classic), there is a program called
<i>EdMetrics</i> which does the job (and more).
<i>EdMetrics</i> comes with the (commercial)
<a href="FAQ-commercial.html">Textures</a> distribution, but is itself free
software, and is available on CTAN.




<dl>
<dt><tt><i>dvips</i></tt><dd><a href="http://mirror.ctan.org/dviware/dvips.zip">dviware/dvips</a> (or <a href="http://mirror.ctan.org/dviware/dvips/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/dvips.html">catalogue entry</a>
<dt><tt><i>EdMetrics</i></tt><dd><a href="http://mirror.ctan.org/systems/mac/textures/utilities/EdMetrics.sea.hqx">systems/mac/textures/utilities/EdMetrics.sea.hqx</a>; <a href="http://mirror.ctan.org//help/Catalogue/entries/edmetrics.html">catalogue entry</a>
<dt><tt><i>fontinst</i></tt><dd><a href="http://mirror.ctan.org/fonts/utilities/fontinst.zip">fonts/utilities/fontinst</a> (or <a href="http://mirror.ctan.org/fonts/utilities/fontinst/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/fontinst.html">catalogue entry</a>
<dt><tt><i>LY1 support</i></tt><dd><a href="http://mirror.ctan.org/fonts/psfonts/ly1.zip">fonts/psfonts/ly1</a> (or <a href="http://mirror.ctan.org/fonts/psfonts/ly1/">browse the directory</a>); <a href="http://mirror.ctan.org/help/Catalogue/entries/ly1.html">catalogue entry</a>
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=metrics">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=metrics</a>
</body>