Steve Litt wrote: > Thanks Richard, > > I verified that your code and t1cmff.fd produce the desired result. Today or > tomorrow I'll try your size factor mechanism. > > What remains now is for me to understand what you've done, so I'll soon study > http://www.latex-project.org/guides/fntguide.pdf to find out why it works > that way. >> I played around a bit with this. It seems to me I ought to know about >> fonts. Here's a very quick hack. >> This file tells LaTeX how to translate encoding-family-weight-shape quartets into fonts. >> Put this in the file t1cmff.fd: >> \ProvidesFile{t1cmtt.fd} >> \DeclareFontFamily{T1}{cmff}{} >> That says that cmff is a font in T1 encoding. >> \DeclareFontShape{T1}{cmff}{m}{n}{<-> cmff10}{} >> This says that a request for the T1-encoded cmff font, in medium weight, with normal shape (i.e., not italic, nor slanted, nor...) should be mapped to the TeX font cmff10, which is made available in cmff10.tfm. >> and save it somewhere appropriate (e.g., $LOCALTEXMF/tex/latex/base/). >> Run texhash to update the database. >> >> Now try this: >> %Begin example file >> \documentclass[12pt]{book} >> \usepackage{newcent} >> >> \newcommand\specialfont{\fontencoding{T1}\fontfamily{cmff}\selectfont}{} >> Font selection. Also available are: \fontseries, \fontshape, and \fontsize. These must always be followed by \selectfont. >> \begin{document} >> This is the normal font. >> >> \section{\protect\specialfont This is the special font} >> >> This is the normal font. >> >> This is the normal font {\specialfont with special font >> embedded} in the normal font. >> \end{document} >> %End example file >> >> If the font sizes don't seem quite right (it looks a bit big to me), you >> can add a scaling factor in t1cmff.fd thus: >> \DeclareFontShape{T1}{cmff}{m}{n}{<-> [0.95] cmff10}{} >> [0.95] is an optional argument for scaling factor. The syntax of \DeclareFontShape can get pretty hairy. >> Again, see http://www.latex-project.org/guides/fntguide.pdf for more ideas. >> >> Richard >>
-- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto
