[LaTeX] pdfTex error: pdflatex.exe (file simhei.ttf): cannot open TrueType font file for reading solution

[LaTeX] Error solution (!pdfTex error: pdflatex.exe cannot open TrueType font file for reading)

1. WinEdt prompts an error

After I reinstalled the Win11 system on my computer, WinEdt showed the following error message when compiling the original LaTeX file:

! pdfTex error: pdflatex.exe (file simhei.ttf): cannot open TrueType font file for reading
==>Fatal error occurred, no output PDF file produced!
texify: pdffatex.exe failed for some reason (see log file).

The error messages encountered by different people may not be exactly the same, the difference is mainly the prefix of ".ttf" in brackets. The ".ttf" file in the error message is a font file (TureType font file), so the error message shown above is actually saying that the program pdflatex.exe cannot open the simhei.tff font file or cannot read the file.

2. Cause of error

The possible reason for the above problems is that the simhei.tff font file does not exist in the system or the font file is damaged and cannot be read (the latter is unlikely).

3. Solutions

3.1 Personalized solutions

To solve this problem, you can directly download a simhei.tff font file from the Internet (for example, Baidu search for "simhei.tff download"), and then copy the downloaded file to the folder C:/Windows/Fonts. The lack of other font files can be handled similarly.

3.2 Basic one-and-done solution

Solution 1 only solves the problem that there is no simhei.tff font file. If there are other fonts that do not exist, you still need to repeat the above method. If you want to do it once and for all, you can use the C:/Windows/Fonts folder on other computers to overwrite this folder on your own computer (to be on the safe side, you can back up your corresponding folder first). Considering that there is generally no backup when you find a problem, the implementation of the above-mentioned method is unlikely, so I share the folder on my computer below (including 211 fonts). If you still don't find what you need among these fonts, you can only return to Solution 1 and search the Internet yourself.

C:/Windows/Fonts folder download address (Baidu network disk)
https://pan.baidu.com/s/1UY0aSgDGbyAElf_qoyI6eg?pwd=uinl
Extraction code: uinl
(The previous link on 2022.05.07 was reported to be invalid by a friend, so update the link~[2022.10.16 update])

This article refers to the blog here , thanks to the boss of "Across Thousands of Miles, All Around"!

If it is helpful to you, please remember to give a thumbs up~

Guess you like

Origin blog.csdn.net/AbaloneVH/article/details/124631772