On Monday 19 November 2001 11:26 pm, you wrote:
> Hi all,
>
> I am going to prepare a club "magazine" for our chess club. And I'm new
> to LyX/LaTeX/everything related.
> I've been reading up (or trying to) on some FAQs and other material
> (mostly TeX-related) but one point which is still quite muddled is the
> use of fonts.
> In one document I found it says that you can specify which font to use
> (\font\sf = cmss10). So in my /usr/share/texmf/fonts I've got a few
> type1 fonts. How do I call these?
Those type1's have names, right? So fonts/type1/adobe/utopia/ contains files
like putr8a.pfb and puti8a.pfb. "p" is the foundry (in this case adobe) and
"ut" is the name of the font. "i" and "r" indicate variants of the fonts--so
that the one with i contains glyphs for utopia italic, and the one with r
contains glyphs for roman.
The type1 dir contains -glyphs- for the postscript fonts. The other
dirs--notably tfm and vf, contain files that describe to TeX how to put those
glyphs on the page.
To call the font use
\usefont{T1}{put}{m}{n}\selectfont
T1=encoding, "put" is the font name, "m" is medium, "n" is normal.
Or you could do
\newfont\myfont{putr8r at 30pt}
and then
\myfont ...some text...
This only a fraction of the complexity, of course. A good place to start is
Herbert Voss's tips and tricks site. Link to it from the LyX homepage. For
more in-depth coverage, look at the dvips documentation, and fntguide.dvi,
which should have come in your TeX distro.
You should check out the chess fonts, by the way (available under the fonts
tree at CTAN)
> Related, but I'll figure it out
> eventualy I suppose. How do I make LyX (or a document edited in LyX)
> recognize that I want Section always should use the font "foo"?
I would just put (in the preamble)
\usepackage{sectsty}
\newfont\mysectionfont{<fontname> at <>pt}
\renewcommand{\sectionfont}{\mysectionfont}
> And at
> work I have a collection of type1 fonts. Do I just dump them in the
> various folders in /usr/share/texmf/fonts?
If what you have at work is a set of pfb/pfa + tfm + vf files, then yes. All
you need to do is drop them into the appropriate directories, though you may
also need to add entries to your psfonts.map
You need tfm and vf files for any font you use. They go in the obvious
directories. Tfm and vf files for a lot of fonts are at CTAN, Adobe provides
them for some of their fonts from their website, and maybe other foundries do
too. In the case of ttf, fonts, all the necessary files can (usually) be
generated from that.
> Martin S