In the article about LM-fonts it's written:

Finally, they can be used with the CM metrics (e.g., via psfonts.map), so as to preserve typesetting of existing documents.

IMHO, font metrics are part of TeX's algorithms and they should be changed in tfm-files, aren't they?
How to change the metrics via psfonts.map, and are there any other ways to do that?

  • 2
    I think the document simply describes that one can use CM tfms and LM glyphs, for example, like cmr10 LMRoman10-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr10.pfb, dvips -u+test.map dviname.dvi, where test.map is a map file which contains lines as above, and dviname.dvi is created by CM tfms. – Akira Kakuto May 20 '15 at 7:17
  • @AkiraKakuto Make this an answer please. Take this test.tex: a \'o \bye where accent \'o will be ó 00F3 oacute in LM-fonts. Is it possible to do similar trick via virtual fonts? – Igor Liferenko May 22 '15 at 2:54

The article about LM-fonts simply describes that one can use CM metrics and LM glyphs by making a suitable map file. For example,

% test.map
cmr10 LMRoman10-Regular "enclmrm ReEncodeFont" <lm-rm.enc <lmr10.pfb

A dvips command line with the above map file may look like

dvips -u+test.map dviname.dvi

where dviname.dvi is created by using CM tfm files. In the case of complicated glyphs, one may have to create encoding files:

cmr10 LMRoman10-Regular "Myenclmrm ReEncodeFont" <Mylm-rm.enc <lmr10.pfb
  • Please use this test.tex: a \'o \bye How do we transform it from CM-fonts to LM-fonts with the same metrics as CM-fonts? What will become with letter ó? Please put full description. – Igor Liferenko May 22 '15 at 3:34
  • cmr10.tfm does not have metrics for > 127. Thus I think \'o is typeset by the same method as in cmr10. There may be workaround, but I don't have investigated the issue. – Akira Kakuto May 22 '15 at 4:12

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.