summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-05-22 23:51:44 +0000
committerKarl Berry <karl@freefriends.org>2009-05-22 23:51:44 +0000
commit566f5207d7e3cafb0633d31277067336ccd9cca7 (patch)
tree7af53e7ac405185168bc1dc38c4e820f442b78d0 /Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html
parentb0beea26ffffd915bb6d9b82f2d65a0a05b7e23b (diff)
move generic english documents out of texmf-doc
git-svn-id: svn://tug.org/texlive/trunk@13396 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html
new file mode 100644
index 00000000000..70ce959aeee
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-newfontstar.html
@@ -0,0 +1,52 @@
+<head>
+<title>UK TeX FAQ -- question label newfont*</title>
+</head><body>
+<h3>What&rsquo;s wrong with <code>\</code><code>newfont</code>?</h3>
+<p/>If all else fails, you <em>can</em> specify a font using the LaTeX
+<code>\</code><code>newfont</code> command. The font so specified doesn&rsquo;t fit into the
+LaTeX font selection mechanism, but the technique can be tempting
+under several circumstances. The command is merely the thinnest of
+wrappers around the <code>\</code><code>font</code> primitive, and doesn&rsquo;t really fit with
+LaTeX at all. A simple, but really rather funny, example of the
+problems it poses, may be seen in:
+<blockquote>
+<pre>
+\documentclass[10pt]{article}
+\begin{document}
+\newfont{\myfont}{cmr17 scaled 2000}
+\myfont
+\LaTeX
+\end{document}
+</pre>
+</blockquote><p>
+(the reader is encouraged to try this). The &ldquo;A&rdquo; of <code>\</code><code>LaTeX</code> pretty
+much disappears: LaTeX chooses the size on the &ldquo;A&rdquo; according to
+<em>its</em> idea of the font size (10pt), but positions it according to
+the dimensions of &ldquo;<code>\</code><code>myfont</code>&rdquo;, which is more than three times
+that size.
+<p/>Another &ldquo;<code>\</code><code>myfont</code>&rdquo; example arises from an entirely different
+source. The mini-document:
+<blockquote>
+<pre>
+\documentclass{article}
+\begin{document}
+\newfont{\myfont}{ecrm1000}
+{\myfont voil\`a}
+\end{document}
+</pre>
+</blockquote><p>
+gives you &ldquo;German low double quotes&rdquo; (under the &ldquo;a&rdquo;) in place of
+the grave accent. This happens because <i>ecrm1000</i> is in a
+different <a href="FAQ-whatenc.html">font encoding</a> than LaTeX is
+expecting &mdash; if you use the LaTeX <i>fontenc</i> package to
+select the EC fonts, all these tiresome encoding issues are
+solved for you, behind the scenes.
+<p/>There does however remain a circumstance when you will be tempted to
+use <code>\</code><code>newfont</code> &mdash; viz., to get a font size that doesn&rsquo;t fall into
+the Knuth standard set of sizes: LaTeX (by default) won&rsquo;t allow you
+to use such a size. Don&rsquo;t despair: see the answer
+&ldquo;<a href="FAQ-fontsize.html">arbitrary font sizes</a>&rdquo;.
+<p/>
+<p/>
+<p/><p/><p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=newfont*">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=newfont*</a>
+</body>