[Tex/LaTex] “Metric (TFM) file not found” error only in TeXStudio under Mac OS X

texstudio

I'm using Mac OS X, and fresh installation of TeX Live 2015 and TeXstudio. When I compile a tex-file with pdflatex command from TeXstudio I get the well-known error "Metric (TFM) file not found". The corresponding log-file says:

! Font T2A/cmr/m/n/10.95=larm1095 at 10.95pt not loadable: Metric (TFM) file no
t found.
<to be read again>
                   relax
l.44 \begin{abstract}

I wasn't able to read the size data for this font,
so I will ignore the font specification.
[Wizards can fix TFM files using TFtoPL/PLtoTF.]
You might try inserting a different font spec;
e.g., type `I\font<same font id>=<substitute font name>'.

When I compile the same file with pdflatex from the terminal, I do not get this error, instead, it seems that TeX compiles the neccessary files by itself (I have «[1] [2] [3]…» thing on the screen). After compilation from the command line, this file can be compiled in TeXstudio without errors. However, when I use a little bit different fonts (e.g. try to compile different file with a different markup), I again get similar error in TeXstudio.

I have cm-super package installed. TeXstudio uses the same pdflatex command that I invoke from the command line.

All the solutions I was able to find assume that there's something wrong with the code or with the packages. In my case it seems that something wrong with TeXstudio because everything works fine from the command line.

Best Answer

I had exactly the same problem and since I also had only Basic installation of TexLive installing texlive-collection-fonts (doh!) resolved the issue for me:

sudo tlmgr install collection-fontsrecommended collection-fontsextra