A Guide on install fonts for TeX

The reason I write this article is that I found the 3270 font converted by otftotfm program has wrong baseline.

Tools you would need:

Tools you don't need: FontForge. You won't need this messy thing to be a professional TeXnician, if you would ever use it to edit fonts, just know that you can get better fonts to start with or do it the harder way.

Only Quiché eaters use LuaTeX or XeTeX to get new fonts, real TeXnichians write they own kerning tables for the fonts they use.

To start with, we assume you stick with direct PDF output with pdfTeX or DVI output with any of the popular processors. The capability to use certain font formats are different, usually DVIPDFMx is better at handling not so well-formed files.

Firstly you would need an encoding file, which specifies how would you assign glyph to at most 256 code points of a TeX font file. To handle CJK there are special hacks that would not be covered here. You don't necessarily need to convert the font to Type 1, but many times you would not able to map some strange characters from TTF or OTF file, so it would be handy to have a Type 1 .pfb file that you could inspect it with t1disasm and modify the glyph IDs.

After that TFM is what TeX uses to typeset documents. A virtual font produces the same TFM format and in addition a VF file to tell how to find the concrete font.

Then the outline file, usually Type 1, but TTF or OTF would also work.

Finally a map file that associates the outline file, encoding file, and TFM file.

⚠︎
If you are setting TFM/VF inside a format

Make sure rebuild the format since the old font parameter would be cached in side the format.