I can not find TTF version of popular LaTeX font family: Latin Modern Roman. I have found only OTF version. Is there any restrictions about TTF implementation or I am bad in searching?

  • 2
    Why do you need a TTF version? May 14 '12 at 12:14
  • 2
    Because code that I write can not access OTF fonts
    – Michael Z
    May 14 '12 at 12:17
  • I see. No there isn’t, but you can use a proper font editor to do the conversion, as answered below. May 14 '12 at 12:19

Not a direct answer, but a workaround:

If you already have the otf font you can use e.g. FontForge to convert the files. OTF is just an extended version of TTF, the method how glyphs are specified is the same, so the characters will stay the same.

  • 6
    I don't think so. OpenType has two flavors, one TrueType one PS. I believe LM is PS flavor OTF and thus a CFF font and the glyphs are described in cubic Bézier splines while TrueType fonts use quadratic Bézier splines. Converting are possible but I am so sure that they will be identical. In addition, CFF and TrueType have very different hinting mechanism.
    – Yan Zhou
    May 14 '12 at 13:14
  • 2
    I checked again, and you are right. OTF seems to be able to use cubic and quadratic splines, whereas TTF font only use quadratic splines. If the conversion algorithm is good it should not matter, the TTF font would just use (many) more control points than the OTF font. Anyways, if the OP has to use a TTF font there is most likely no alternative, I doubt that one would go through the chores of designing the font twice, once for OTF and once for TTF... May 16 '12 at 13:27
  • LM does indeed use cubic outlines. So the conversion to TTF (quadratic curves) would not be exact, but would probably be good enough. As mentioned above, flawed conversion (or non-conversion) of the hinting info would probably do more harm than approximation in the outline geometry.
    – bubba
    Oct 3 '15 at 9:42

Old question but I found the answer here: https://medium.com/@fulowa/latex-font-in-a-ggplot-9120caaa5250

Edit: The Font Squirrel website provides a TTF webfont version.

PS (from @muzimuzhiZ): I've not tested those TTF files yet.

enter image description here

  • 1
    Can you copy and paste the core part here because external links are subject to 404?
    – Symbol 1
    Jul 15 '20 at 18:51

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.