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. Thanks SteveT On Wednesday 16 May 2007 09:04, you wrote: > Richard Heck wrote: > I played around a bit with this. It seems to me I ought to know about > fonts. Here's a very quick hack. > > Put this in the file t1cmff.fd: > \ProvidesFile{t1cmtt.fd} > \DeclareFontFamily{T1}{cmff}{} > \DeclareFontShape{T1}{cmff}{m}{n}{<-> cmff10}{} > 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}{} > > \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}{} > Again, see http://www.latex-project.org/guides/fntguide.pdf for more ideas. > > Richard
