Assuming you have the required programs installed (metapost, gawk and t1utils), and regardless of your OS or TeX distro, the following should work:
Dump the contents of the Latin Modern sources and metatype1 in the same directory.
Go to the working directory, start a shell session, and copy the file e-rm.mp
into lm-tex.mpe
.
Enter an interactive session of metapost: mpost -jobname=lmr10
. Once inside, type \relax
to enter interactive mode. then issue the statements generating:=0; input lmr10
.
That should generate all the glyphs and get you back to the shell. Once there, process the output files (lmr10.*
) with the following commands.
gawk -f mp2pf.awk -vCD=pfcommon.dat -vNAME=lmr10
gawk -f packsubr.awk -vVERBOSE=1 -vLEV=5 -vOUP=lmr10.pn lmr10.p
t1asm -b lmr10.pn lmr10.pfb
- To generate the
tfm
file, run step (3) with -jobname=rm-lmr10
and generating:=1;
instead.
Metatype1 includes the batch files mkfont1.bat
, mkt1.bat
and mktfm.bat
that should do the job on windows; in fact, I got all the instructions from those scripts. You may try to translate the scripts for [b|a]sh.
.pfb
and.tfm
files as there is between.pfb
and.afm
files, for example.