This question cannot be answered as it stands. This answer aims to provide an overview of some of the factors which must be considered when installing TeX fonts.
The easiest way to use an arbitrary font is to use LuaTeX or XeTeX as your compiler and to load the
fontspec package. This is ideal for opentype or truetype fonts.
I'm assuming that you want to use TeX or pdfTeX and so need to use traditional TeX fonts.
There is no one answer to the question you ask. It depends on the font and on the purpose to which you want to put it. There is a great deal of difference between installing a font containing a single symbol and a font designed to typeset text with multiple ligatures, kerning pairs etc. Or, again, a font designed for mathematics.
At a minimum, the following are required:
- the PFB font which contains the instructions for drawing the picture of each character (glyph);
- one or more TFMs - TeX Font Metric files - which provide information about the size of the box containing each character, how to adjust the positioning of certain sequences of characters (kerning pairs, possibly ligatures);
- one or more lines for the MAP file, typically in the form of a
.map file fragment;
- one or more font definition files (
.fd) which tell LaTeX when to use the font [this information can be given in a
.sty file or in the
.tex document, but it is more convenient to use an
In addition, you may need
- one or more encoding files (
- one or more virtual fonts (
.vf) [only strictly needed if you are combining characters from different fonts or if you need to fake certain characters or shapes, but they can be convenient in other cases, too].
In order to create a TFM for the font, you need the AFM.
- What encoding do you wish to use? Compare the characters the font provides - or the subset you wish to use - with the character tables for standard encodings. For example,
OT1 etc. If the font is a symbol font - where this means something like ding bats rather than maths symbols - then you can skip this and use the font's own encoding. In this case, you install an unencoded/raw font (
U). In all other cases, you need to find a good match in a standard encoding.
- Is one TeX font sufficient? A text font cannot contain more than 256 characters and some of the available slots are needed for various mechanical/technical purposes. It is perfectly possible to use all of the characters from a much larger PFB. However, in that case, you must present TeX with several TFMs, all of which may be based on the single PFB. That is, one type1 font can make several TeX fonts.
- A symbol font containing more than 256 characters must be similarly split when creating TeX fonts, so the mere fact that you could use
U does not necessarily mean that you want to.
- How are the characters named? Do their names match the names in the
.enc or whatever files which you will use to define your encoding(s).
Depending on the answers to these questions, you may use tools such as
fontinst etc. to create the TeX fonts. In the simplest cases, this may take 5 minutes. In the most complex cases, it may take considerably longer.
So it is vital to begin by evaluating what you are dealing with and exactly what you want to achieve in terms of functionality in TeX.