Adding a Font to teTeX
This document describes how to install a new font into tetex 3.0.
tetex is a UNIX distribution of the TeX typesetting system.
tetex is open-source software, www.tug.org/tetex.
This document uses as an example the installation of the font FS Albert.
It assumes possession of a Tex font metric file (FSAlbert.tfm)
and a PostScript Type 1 file (FSAlbert.pfb).
In our case tetex had been installed into /opt/tetex and
the new font was to be installed into the texmfdist directory tree (/opt/tetex/share/texmf-dist).
N.B. I realised afterwards that strictly speaking I should not have added the font into the texmfdist directory tree
(as this is meant to only hold fonts as originally distributed with tetex)
but should have instead created a new texmflocal directory tree (e.g. /opt/tetex/share/texmf-local).
However by this stage the font was in live use and could not be changed.
Create directories to hold the files relating to the new font(s).
In this example the directories are all named fontsmith:
mkdir /opt/tetex/share/texmf-dist/fonts/tfm/public/fontsmith mkdir /opt/tetex/share/texmf-dist/fonts/type1/public/fontsmith mkdir /opt/tetex/share/texmf-dist/fonts/map/dvips/fontsmith
Copy the font files into place:
cp FSAlbert.tfm /opt/tetex/share/texmf-dist/fonts/tfm/public/fontsmith cp FSAlbert.pfb /opt/tetex/share/texmf-dist/fonts/type1/public/fontsmith
Create the file /opt/tetex/share/texmf-dist/fonts/map/dvips/fontsmith/fsalbert.map, containing the following:
FSAlbert FSAlbert <8r.enc <FSAlbert.pfb
Inform tetex of the newly-created files:
texhash
Run updmap-sys, which will add the new font to the font configuration files for all tetex programs:
updmap-sys --enable Map=fsalbert.map

(3 votes, average: 4 out of 5)