0

I try to solve my problem asked on stackoverflow about a python script which uses TeX to create matplotlib labels. see https://stackoverflow.com/questions/50875637/matplotlib-how-do-i-have-to-provide-font-metrics-files-for-rendering-text-by-te for details.

It turns out that a tfm file is missing. FileNotFoundError: missing font metrics file: rsfs10

However, the package rsfs is installed, but the package does not contain the tfm files. https://ctan.org/tex-archive/fonts/rsfs/ Is there any reason for that? Where could I get such tfm file?

I already found a similar topic: Problem finding metafonts at compilation The solution which was provided there, was the installation of the package. But this is already done on my system.

  • the ctan package has the metafont sources so the tfm would be generated from them by metafont but you should have the tfm in texlive or miktex in a location such as /usr/local/texlive/2018/texmf-dist/fonts/tfm/public/rsfs/rsfs10.tfm – David Carlisle Jul 18 '18 at 12:59
  • how did you install the rsfs package? using your package installer, or by hand fetching the files from ctan? – David Carlisle Jul 18 '18 at 13:01
  • I used the MikTeX 2.9 package installer. How do I have to generate the tfm files from the source? – Stellarator Jul 18 '18 at 13:15
  • 1
    I don't know about miktex but on texlive if you just try to tex a document using the fonts it will run metafont for you and make the tfm for a font that has the mf files installed but not the tfm – David Carlisle Jul 18 '18 at 13:21
  • 1
    the tfm is not in the package but with my miktex it is created automatically from the sources at the first use of the font. – Ulrike Fischer Jul 18 '18 at 19:51
1

With the help of the discussion of my question (see comments), I found a solution:

On my computer, the MikTex installation was quite new, and the font has never been used before, therefore the required tfm files had not been created.

However, the matplotlib Python package (dviread.py) tried to identify the tfm files before usage in order to create a fontfile cache (see question here https://stackoverflow.com/questions/50875637/matplotlib-how-do-i-have-to-provide-font-metrics-files-for-rendering-text-by-te)

I have installed a complete TeXLive installation on another computer. There the tfm files were already created during installation and I just copied the files to the corresponding location on my computer.

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.