- Как восстановить кэш шрифтов в Windows 10
- Как восстановить кэш шрифтов в командной строке
- Ways to Clear Font Cache on Windows
- Font cache is stored in specific files, check out this post and learn how to clear font cache on Windows.
- Part 1: How to Clear Font Cache on Windows
- Method 1 (Administrator privilege required)
- Method 2 Clear Font Cache on Windows with Stellar BitRaser for file
- Part 2: How to Clear Font Cache on Mac
- How to rebuild Font cache in Windows 10
- Rebuild Font cache in Windows 10
- How To Rebuild Font Cache in Windows 10
- About Sergey Tkachenko
- How to reset css fonts cache
- 4 Answers 4
Как восстановить кэш шрифтов в Windows 10
В этой статье показаны действия, с помощью которых можно восстановить кэш шрифтов в операционной системе Windows 10.
Кэш шрифтов — это файл или набор файлов, используемых Windows для управления и отображения шрифтов, установленных на компьютере.
Иногда кэш шрифтов может быть поврежден и привести к искажению или неправильному отображению шрифтов. Чтобы исправить повреждение кэша шрифтов, необходимо удалить старый кэш шрифтов и перезагрузить компьютер, чтобы восстановить новый кэш шрифтов.
Чтобы восстановить кэш шрифтов в операционной системе Windows 10, необходимо войти в систему с правами администратора
Как восстановить кэш шрифтов в командной строке
Вы можете восстановить кэш шрифтов используя командную строку.
Запустите командную строку от имени администратора и первой командой остановите службу кэша шрифтов Windows:
Установите тип запуска отключена для службы кэша шрифтов Windows, для этого выполните команду:
sc config «FontCache» start=disabled
Затем с помощью двух команд удалите файлы кэша шрифтов:
del /A /F /Q «%WinDir%\\ServiceProfiles\\LocalService\\AppData\\Local\\FontCache\\*FontCache*»
Теперь установите тип запуска автоматически для службы кэша шрифтов Windows, для этого выполните команду:
Запустите службу кэша шрифтов Windows, для этого выполните команду:
Выполнение команд представлено на скриншоте ниже.
После выполнения команд, закройте окно командной строки и перезагрузите компьютер.
Ways to Clear Font Cache on Windows
Font cache is stored in specific files, check out this post and learn how to clear font cache on Windows.
Amy Dennis
Dec 21, 2020 • Filed to: Recover & Repair Files • Proven solutions
A cache is a file made by the operating system to make certain aspects quickly accessible and reduce fetch times and also the burden on your storage device. If you are having trouble displaying or using fonts such as fonts appearing garbled, fonts refusing to switch when you want them to or giving errors or crashing the program while switching fonts, then it may indicate that your font cache is corrupted.
To rebuild it, you need toВ clear font cache on WindowsВ or Mac. You can safely delete these files since these are just caches and not the actual fonts stored on your computer. Once you clear the font cache on Windows or Mac, the next time your system starts, the operating system will check for the font cache, and once it is found to be missing, the cache will be reconstructed from the original files, thus fixing any issues that may be caused by corrupt font cache.
Part 1: How to Clear Font Cache on Windows
There are two ways to clear font cache on Windows. One is to stop caching service and manually remove all the files. However, you must have a reasonable level of comfort and confidence tinkering with your system. For example, if you delete the wrong system files, you may cause severe damage to your system. Another way is to use a simple font cache cleaner likeВ Stellar BitRaser for the file.
Method 1 (Administrator privilege required)
- Open the «Run» dialogue box from the Start menu (open Start menu and type «Run») or by pressing Windows Key + R. Enter «services.msc» in the Run dialogue box and hit Enter key
- Find the «Windows Font Cache Service» in the long list. Stop it by selecting the service and pressing the Stop option in the sidebar or by right-clicking it and selecting the Stop option.
- Open «This PC» or Windows Explorer (hit Windows Key + E) and navigate to the path below. Directly pasting the path in Windows Explorer will not work, you will need to specially allow permission to access certain folders. So start from C:\ and navigate to the path.
C:\Windows\ServiceProfiles\LocalService\AppData\Local\FontCache - Select all files in this folder (Ctrl + A) and delete them.
- Open the Run dialogue again, enter «%WinDir%\System32\» and press Enter key.
- Find the file named «FNTCACHE.DAT» and delete it. Warning — Be careful not to modify or delete any other file.
- Restart your computer. The font cache will be rebuilt during the restart.
Method 2 Clear Font Cache on Windows with Stellar BitRaser for file
Stellar BitRaser for file, besides acting as a font cache cleaner, can also help you in the cleanup of other junk files in your system. This program is specially made to erase unnecessary and unwanted junk. It can automatically find and clean traces of Internet activity and also traces of activities of other software. It has options that you can choose to delete any private emails, chat messages, or temporary files. It can also employ secure erasure techniques to erase private files such that they cannot be recovered or reconstructed. The secure erase technique can use one of 17 different standard or advanced erasing standards.
- Download Stellar BitRaser for the file on your Windows computer, and launch it.
- Click the «System Trace» section to start clear font cache on Windows
- Select «Cache Fonts» and click the «Erase Now» button to process.
- After completing the erasure, you can reboot your system.
Tip:В If you need to ensure that the data is permanently removed beyond the point where it can be recovered, you can repeat the process one more time. The data will be overwritten once more, and two passes would be enough to ensure that it cannot be recovered.
Part 2: How to Clear Font Cache on Mac
For Mac, you can either start your computer in the safe boot mode or use Terminal commands to rebuild font cache.
Method 1
- Shut down your computer.
- Press the Power button to start up your computer. As you hear the power-up tone, immediately press and hold down the Shift key. You can release the Shift key after the Apple logo appears.
- Let the computer start-up in Safe Boot. This mode can be used to automatically clear font cache on Mac.
- Restart your computer normally.
Method 2
- Close any running applications and run the Terminal. You can open Terminal from Applications > Utilities > Terminal
- For only your user account, type «atsutil databases –removeUser» and hit the Return key. For clearing font cache for all users, type «atsutil databases –remove» and hit the Return key. This clears the font cache on Mac.
- Now you need to stop and restart the ATS server. For doing so, first, enter «atsutil server –shutdown» in the Terminal and hit Return. Then enter atsutil server –ping’ and hit Return.
Malfunctioning fonts can be a major annoyance or even prevent you from doing your work altogether. It can be fixed by clearing the font cache using the simple steps mentioned in this article. However, the task can be made a lot easier by using a font cache cleaner likeВ Stellar BitRaser for file, so that you can get back to work quickly.
How to rebuild Font cache in Windows 10
The Windows operating system creates a cache for the fonts so that they can load faster every time you start a program, app, Explorer, etc. But if you are facing Font problems, where the fonts are not rendering properly or displaying invalid characters on your Windows 10 computer, maybe the Font Cache has become corrupt. To resolve the issue, you need to reset, clear & rebuild the Font Cache. Let us see how to do it.
Rebuild Font cache in Windows 10
Type services.msc in Start search and hit Enter to open the Windows Services Manager.
Locate the Windows Font Cache Service. Double-click on it to open its Properties box. Stop the Service and Disable it as well. The Windows Font Cache Service optimizes the performance of applications by caching commonly used font data. Applications will start this service if it is not already running. It can be disabled, though doing so will degrade application performance.
Do the same for Windows Presentation Foundation Font Cache 3.0.0.0 Service as well. Stop and Disable it as well. The Windows Presentation Foundation Font Cache 3.0.0.0 Service optimizes the performance of Windows Presentation Foundation (WPF) applications by caching.
Now open File Explorer, make Windows show Hidden files & folders and then manually navigate to the following location:
Press Continue if you are asked.
Once there, delete all .dat files starting with FontCache.
Next, open the Font Cache folder which you see there and delete all its contents.
If you are unable to delete some files, restart the computer and try. Since you have disabled both the Services, they will not start, and you will be able to delete all files.
Once you have deleted the files, Enable both the Services and Start them via Services Manager.
How To Rebuild Font Cache in Windows 10
Similarly to the icon cache, Windows creates a cache for fonts to load them faster and display the user interface of apps, documents and other controls faster. When it is corrupted, fonts may not appear properly, or some fonts might be missing in the font list available for certain apps. In this article, we will see how to rebuild the font cache.
Before proceeding, ensure that your user account has administrative privileges. Now, follow the instructions below.
To rebuild the font cache in Windows 10, do the following.
- Press Win + R shortcut keys on the keyboard to open the Run dialog. Type services.msc in the Run box.
- The Services console will be opened.
- Find the Windows Font Cache service in the list.
- Click on the stop button on the toolbar.
Tip: See the following detailed guide on how to start, stop or restart a service in Windows 10. - Open This PC in File Explorer.
- Go to the following folder by navigating one folder at a time. Do not copy paste the path directly as certain folders are protected and you may need to press the Continue button to access them:
Note: If you have stopped the service but still cannot delete the files, here is a workaround.
- Download ExecTI.
- Use ExecTI to run cmd.exe as TrustedInstaller.
- In the command prompt opened as trusted installer, type or copy-paste the following command:
del /A /F /Q «%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*FontCache*»
This should resolve the issue.
Tip: You can use the following command to stop and start the Windows Font Cache service.
On Windows 7 and Windows 8.1, the Font Cache files are located directly in the following folder:
There is no separate FontCache directory like Windows 10. In this case, be careful to not delete the other folders. Delete only the *.DAT files related to the font cache.
Note: If your fonts are still corrupted and displaying invalid characters after resetting the cache, the installed fonts in C:\Windows\Fonts themselves may be damaged. To restore the default fonts that ship with Windows, run the following command from an elevated command prompt:
Let Windows restore the original font files. If the font files in your Component Store are corrupted, refer to the following article to learn how to use DISM to repair them: How to Fix Windows 10 using DISM
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
Share this post
About Sergey Tkachenko
Sergey Tkachenko is a software developer from Russia who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.
How to reset css fonts cache
I’ve changed my fonts in the server, but the browser get the old version of the css file where fonts are writed, how to reset the cache?, i’ve tried to delete browser cache and delete the old file css, but they still are getting the old cs, i’ve tried to reload the server, how to fix that?
4 Answers 4
I’ve noticed this happen only in Firefox, which is very annoying, however, if this is the same situation as you here, refresh with SHIFT + CMD + R (if you’re on a mac, I presume the windows alternative is CTRL + SHIFT + R)
That’ll clear your cache for that page too + SHOULD show your fonts 🙂
Make sure your browser isn’t displaying local fonts — I spent almost one hour trying to figure out how to clear the font cache in Firefox, while the issue had nothing to do with that.
Check your webserver logs : are font files downloaded ? If not, then it’s likely you’re using local fonts.
Consider this real case scenario :
I copypasted this code from somewhere, removing part of the src definition, not noticing the ending comma which made this line invalid CSS. Therefore the font was not downloaded.
However, since I had Superfont already installed locally, it seemed to work because the browser recognized the font-family . Well, until I decided to change the font file, but keeping the font-family definition to spare further modifications of the CSS file…
Morality : when testing fonts, use an unambiguous custom font-family name.