This is a more concrete variation of http://www.arcetri.astro.it/CC/guides/truetype/index.html specialized for debian etch.
/usr/share/texmf-tetex/fonts/map/fontname/supplier.map
/usr/share/texmf-tetex/fonts/map/fontname/typeface.map
r
), bold (b
), italic (ri
) and bold italic (bi
).8a
)$namebase
to the first three letters of the new fontname (creator and family)$supplier
and $fontname
to the lowercase complete (not single-letter) supplier/fontname of the font.fontnames.txt
:# for f in *.ttf; do \ ttf2pt1 -a -e $f ${f%.ttf} 2>/dev/null; \ name="`ttf2pt1 -a -b $f ${f%.ttf} 2>&1 | grep -F FontName | cut -d ' ' -f 2-`"; \ echo ${f%.ttf} $name; \ done | tee fontnames.txt
fontinst.sty
on the files:# tex "\input fontinst.sty \latinfamily{$namebase}{} \bye"
pltotf
and vptovf
and clean up:# for a in *.pl; do pltotf $a; done # for a in *.vpl; do vptovf $a; done # rm *.pl *.vpl *.mtx
stow
.# texmf="/usr/local/stow/latex-font-$supplier-$fontname/share/texmf"; \ for ext in tfm vf pfa afm ttf; do \ sudo mkdir -p $texmf/fonts/$ext/$supplier/$fontname; \ sudo mv *.$a $texmf/fonts/$ext/$supplier/$fontname; \ done; \ sudo mkdir -p $texmf/fonts/type1/$supplier/$fontname; \ sudo mv *.pfb $texmf/fonts/type1/$supplier/$fontname; \ sudo mkdir -p $texmf/tex/latex/psnfss; \ sudo mv *.fd $texmf/tex/latex/psnfss
fontinst.log
and fontnames.txt
should be left in the current directory.# while read tex ps; do \ name="${tex%8a}8r"; \ echo "$name $ps \"TeXBase1Encoding ReEncodeFont\" <8r.enc <$tex.pfb"; \ done <fontnames.txt >$supplier-$fontname.map; \ sudo mkdir -p $texmf/dvips/config; \ sudo mv $supplier-$fontname.map $texmf/dvips/config
update-updmap
. Then we update all the tex indices# ( cd /usr/local/stow; \ sudo chown -R root.staff latex-font-$supplier-$fontname; \ sudo stow latex-font-$supplier-$fontname ); \ echo "Map $supplier-$fontname.map" >50$supplier-$fontname.cfg; \ sudo cp 50$supplier-$fontname.cfg /etc/texmf/updmap.d; \ sudo texhash; \ sudo update-updmap; \ sudo updmap-sys
\selectfont
calls to make use of the font. Place those in $texmf/tex/latex/font-$supplier-$fontname/
. Example:\NeedsTeXFormat{LaTeX2e} \def\fileversion{1.0} \def\filename{georgia} \def\filedate{2004/08/10} \ProvidesPackage{\filename}[\filedate\space\fileversion\space MS Georgia font for LaTeX] \newcommand{\georgia}{\usefont{T1}{jgi}{m}{n}\selectfont}