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
58
59
60
61
62
63
64
65
66
67
|
<head>
<title>UK TeX FAQ -- question label fontunavail</title>
</head><body>
<h3>Warning: “Font shape ... not available”</h3>
<p/>LaTeX’s font selection scheme maintains tables of the font families
it has been told about. These tables list the font families that
LaTeX knows about, and the shapes and series in which those font
families are available. In addition, in some cases, the tables list
the sizes at which LaTeX is willing to load fonts from the family.
<p/>When you specify a font, using one of the LaTeX font selection
commands, LaTeX looks for the font (that is, a font that matches
the encoding, family, shape, series and size that you want) in its
tables. If the font isn’t there at the size you want, you will see a
message like:
<pre>
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <11.5> not available
(Font) size <12> substituted on input line ...
</pre>
There will also be a warning like:
<pre>
LaTeX Font Warning: Size substitutions with differences
(Font) up to 0.5pt have occurred.
</pre>
after LaTeX has encountered <code>\</code><code>end{document}</code>.
<p/>The message tells you that you’ve chosen a font size that is not in
LaTeX’s list of “allowed” sizes for this font; LaTeX has
chosen the nearest font size it knows is allowed. In fact, you can
tell LaTeX to allow <em>any</em> size: the restrictions come from the
days when only bitmap fonts were available, and they have never
applied to fonts that come in scaleable form in the first place.
Nowadays, most of the fonts that were once bitmap-only are also
available in scaleable (Adobe Type 1) form. If your installation uses
scaleable versions of the Computer Modern or European Computer Modern
(EC) fonts, you can tell LaTeX to remove the restrictions;
use the <i>type1cm</i> or <i>type1ec</i> package as appropriate.
<p/>If the combination of font shape and series isn’t available, LaTeX
will usually have been told of a fall-back combination that may be
used, and will select that:
<pre>
LaTeX Font Warning: Font shape `OT1/cmr/bx/sc' undefined
(Font) using `OT1/cmr/bx/n' instead on input line 0.
</pre>
<p/>Substitutions may also be “silent”; in this case, there is no more
than an “information” message in the log file. For example, if you
specify an encoding for which there is no version in the current font
family, the ‘default family for the encoding’ is selected. This
happens, for example, if you use command <code>\</code><code>textbullet</code>, which is
normally taken from the maths symbols font, which is in <code>OMS</code>
encoding. My test log contained:
<pre>
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10> not available
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line ...
</pre>
<p/>In summary, these messages are not so much error messages, as
information messages, that tell you what LaTeX has made of your
text. You should check what the messages say, but you will ordinarily
not be surprised at their content.
<dl>
<dt><tt><i>type1cm.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/type1cm.zip">macros/latex/contrib/type1cm</a> (or <a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archive/macros/latex/contrib/type1cm/">browse the directory</a>)
<dt><tt><i>type1ec.sty</i></tt><dd><a href="http://www.tex.ac.uk/www.tex.ac.uk tex-archivefonts/ps-type1/cm-super/type1ec.sty">fonts/ps-type1/cm-super/type1ec.sty</a>
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fontunavail">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=fontunavail</a>
</body>
|