Suppose we need to go all the way from METAType1 sources for LM-fonts


up to these two files: lmr10.pfb and rm-lmr10.tfm

Can anybody give some tips or recommendations for further reading on how to achieve this?


Assuming you have the required programs installed (metapost, gawk and t1utils), and regardless of your OS or TeX distro, the following should work:

  1. Dump the contents of the Latin Modern sources and metatype1 in the same directory.

  2. Go to the working directory, start a shell session, and copy the file e-rm.mp into lm-tex.mpe.

  3. 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.

  4. 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

  1. 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.

  • For the first part of the question it works - pfb file is produced, which is great. But no tfm... – Igor Liferenko Oct 30 '15 at 22:50
  • It is not the same which tftopl rm-lmr10 produces in TeX Live. Notably, the generated tfm is lacking "LIGTABLE"... – Igor Liferenko Oct 30 '15 at 22:59
  • it works now, but with qx- encoding, instead of rm- – Igor Liferenko Oct 30 '15 at 23:05
  • In your command there is missing mpout.afm. Using pltotf rm-mpout gives errors; vptovf rm-mpout.vpl works. Still, the pl file is not the same which tftopl rm-lmr10 produces. How to specify encoding properly in step 3? – Igor Liferenko Oct 31 '15 at 0:31
  • In the sources there is e-rm.sel, so the answer remains incomplete. The ultimate test must be the (almost) zero difference between tftopl rm-lmr10 and tftopl mpout.tfm. – Igor Liferenko Oct 31 '15 at 0:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.