2

Computer Modern fonts, when printed from a pdf generated by pdflatex, tend to produce rather thin lines. The way to solve that problem has been described here through the use of the blacker parameter.

MathJax also uses Computer Modern, and makes the fonts thicker by the blacker parameter as shown in this script. MathJax then splits the font into multiple parts, available here in OTF form. These OTF files are created from FontForge scripts generated here.

When dealing with non-English texts, and using Latin Modern, I use luatex and the OTF version of Latin Modern fonts which can be downloaded from this link. I would like to be able to generate thicker versions of the Latin Modern fonts in OTF format, so that I can use them by luatex to generate pdf documents.

There has been discussion on how to compile LM fonts from sources at tex.stackexchange, focusing specifically on how to generate the pfb and tfm files. The creators of Latin Modern provide tips on how they generated the OTF fonts in Sec 4.3 of the paper titled Latin Modern fonts: how less means more. They mention that they used the Adobe Font Development Kit for Open-Type to generate the OTF fonts, also highlighting that FontForge could be another option.

I can see that MathJax is able to create thicker OTF versions of Computer Modern by FontForge (though I don't understand how it is done). How can a similar task be achieved in the case of the Latin Modern fonts? Does anyone have the scripts available to achieve this task? To be more specific, I am looking for an answer as the one in how to compile LM fonts from sources, for the case of OTF font generation from the metatype Latin Modern sources.

  • 1
    would Computer Modern Unicode be of any help to your project? – user4686 Nov 18 '18 at 0:02
  • @jfbu Thank you for informing me about the Computer Modern Unicode package. I looked at their source code but could find the scripts that did the conversion to OTF. – Ekin Nov 18 '18 at 17:27
  • ... could not ... (sorry for the typo) – Ekin Nov 18 '18 at 17:36
  • FontForge can change the stem dimension of the glyphs as explained here. One can select all glyphs in the OTF font, then go to Element -> Style -> Change Glyph -> Stems to slightly increase the stem height/width of a specific font. I am not sure whether this is a similar operation to the blacker parameter change in Metatype. – Ekin Nov 18 '18 at 19:01
  • I am very ignorant in those matters, I just happened to have looked at CMU recently and it has nice glyph pages texdoc cmunrm.pdf and they did not look too thin to me... I hope you attract attention of the real font experts here. – user4686 Nov 18 '18 at 21:33

Your Answer

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

Browse other questions tagged or ask your own question.