Font family 'Computer Modern' not found

Defining “Computer Modern” as default font familly is very convenient when using Plots.jl default gr() backend, as per this other post.

However, using the pyplot or pythonplot backends issues the warning message:

findfont: Font family ['Computer Modern'] not found.

Is it possible to fix this font problem?

Since no one else is answering, here’s some input, maybe useful: Computer Modern is Knuth’s font for TeX. In the post you reference it’s however being used by MathJax so it’s not clear to me what’s happening here. The suggestion of using “Computer Modern” may be specific to that setup with specific backends. In any case, I’m not sure that Computer Modern is a good font choice, Knuth last updated it in 1992. I’m sure there are better, TTF or OTF, font available now.

Thanks for your response.

There is a “cm” font for pythonplot() backend :

using Plots; pythonplot(dpi=100)
plot(sin, fontfamily="cm", tickfontsize=20)

which issues the same error:
findfont: Font family 'cm' not found.

however, what is plotted does look like “Computer Modern”.

Could someone enlighten if pythonplot’s “cm” and gr’s “Computer Modern” could be matched, so that when we change backend we can keep the same font family.