Why “Modern Latin Math” font messes my plot?

I just download the Modern Latin Math font from here to have a consistent font with my LaTeX text. The font is exactly what I am looking for. But when I use it for my plot it messes the gap between the axis and the tickmarks and also between the tickmarks and the frame label.

This is the command that I use

ListLinePlot[stressD1, AspectRatio -> 1, Frame -> True,
PlotRange -> {{-1100, 1100}, {-1100, 1100}}, FrameStyle -> Black,
BaseStyle -> {FontFamily -> "Latin Modern Math", FontSize -> 22},
ImageSize -> 465,
FrameLabel -> (MaTeX[#,
Magnification -> 2] &) /@ {"\\sigma^\\text{t}_{1}",
"\\sigma^\\text{t}_{2}"}]


and this is what I get

However, if I use any other fonts, e.g. the MS Serif font, the plot is totally fine, see below

ListLinePlot[stressD1, AspectRatio -> 1, Frame -> True,
PlotRange -> {{-1100, 1100}, {-1100, 1100}}, FrameStyle -> Black,
BaseStyle -> {FontFamily -> "MS Serif", FontSize -> 22},
ImageSize -> 465,
FrameLabel -> (MaTeX[#,
Magnification -> 2] &) /@ {"\\sigma^\\text{t}_{1}",
"\\sigma^\\text{t}_{2}"}]


Any suggestions on how to fix this?

• What is your OS and Mathematica version? – Szabolcs Jul 7 at 17:38
• @Szabolcs Window 10 mathematica 11.3 – KratosMath Jul 7 at 19:49
• I don't know why, but here are some things I would try: 1. Try this version of the fonts 2. Try the "Roman" version (not "Math"). 3. As I remember, on Windows the correct name to refer to the font was "LM Roman 12" and not "Latin Modern Roman" or "Latin Modern Math", but I can't test this on Windows right now. Will any of these help? I have no idea. Just try them. – Szabolcs Jul 8 at 7:04
• @Szabolcs thanks for your response. I used the font "LM Roman 9", which is practically the same as "Latin Modern Math", and didn't have that issue. – KratosMath Jul 8 at 8:51
• Good to hear! The number in the font name is the size it is optimized for. "LM Roman 9" can be used at any size, not just 9 points, but other variants are more readable at smaller sizes. At larger sizes "LM Roman 12" would look more beautiful. In practice, it doesn't matter which one you use unless you use really tiny sizes. – Szabolcs Jul 8 at 10:02