7

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

http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2004mt1.zip

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?

10
  • 1
    Ask GUST: gust.org.pl/projects/e-foundry/latin-modern
    – egreg
    Commented Oct 27, 2015 at 14:57
  • 3
    They are available from GUST as @egreg observes: see gust.org.pl/projects/e-foundry/latin-modern/download. That might be an answer: not sure (seems perhaps too obvious).
    – Joseph Wright
    Commented Oct 27, 2015 at 14:59
  • 1
    Al: I don't see that this is OT at all! What's the issue with the question?
    – Joseph Wright
    Commented Oct 28, 2015 at 7:04
  • 1
    Maybe this article and this one would be helpful. Note that there is not a 1-1 relationship between .pfb and.tfm files as there is between .pfb and .afm files, for example.
    – cfr
    Commented Oct 28, 2015 at 22:17
  • 1
    It depends what you know and where you're starting. I don't know what you know or where you're starting, so I posted both ;).
    – cfr
    Commented Oct 29, 2015 at 1:01

1 Answer 1

7
+500

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.

22
  • For the first part of the question it works - pfb file is produced, which is great. But no tfm... Commented Oct 30, 2015 at 22:50
  • It is not the same which tftopl rm-lmr10 produces in TeX Live. Notably, the generated tfm is lacking "LIGTABLE"... Commented Oct 30, 2015 at 22:59
  • it works now, but with qx- encoding, instead of rm- Commented Oct 30, 2015 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? Commented Oct 31, 2015 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. Commented Oct 31, 2015 at 0:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .