Windows 10: Rebuild Font Cache in Windows 10  

    Rebuild Font Cache in Windows 10

    Rebuild Font Cache in Windows 10

    How to Rebuild Font Cache in Windows 10
    Published by Category: Performance & Maintenance
    20 Mar 2017
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 20,878

    Show Printable Version 


    How to Rebuild Font Cache in Windows 10

    information   Information
    The font cache is a file or set of files used by Windows to manage and display the fonts that are installed on your PC. Sometimes the font cache may become corrupted and cause fonts to be garbled or not appear properly. To fix the font cache corruption, you will need to delete the old font cache and restart the computer afterwards to rebuild a new font cache.

    This tutorial will show you how to rebuild the font cache to repair it in Windows 10.

    You must be signed in as an administrator to be able to rebuild the font cache.




    Here's How:

    1. Click/tap on the download button below to download the Rebuild_Font_Cache.bat file.

    download

    Note   Note
    Here is the contents of the .bat file for reference:

    Code:
    @echo off
    
    :: Stop and disable "Windows Font Cache Service" service
    :FontCache
    sc stop "FontCache"
    sc config "FontCache" start=disabled
    sc query FontCache | findstr /I /C:"STOPPED" 
    if not %errorlevel%==0 (goto FontCache)
    
    
    :: Grant access rights to current user for "%WinDir%\ServiceProfiles\LocalService" folder and contents
    icacls "%WinDir%\ServiceProfiles\LocalService" /grant "%UserName%":F /C /T /Q
    
    
    :: Delete font cache
    del /A /F /Q "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*FontCache*"
    
    del /A /F /Q "%WinDir%\System32\FNTCACHE.DAT"
    
    
    :: Enable and start "Windows Font Cache Service" service
    sc config "FontCache" start=auto
    sc start "FontCache"

    2. Save the .bat file to your desktop.

    3. Unblock the .bat file.

    4. Right click or press and hold on the .bat file, and click/tap on Run as administrator.

    5. An elevated command prompt will now open, run the commands in the .bat file to delete the font cache, and close.

    6. When finished, restart the computer to rebuild a new font cache.


    That's it,
    Shawn


  1.    20 Mar 2017 #1

    Hi Shawn,

    In the %WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache folder, under normal operation there are 4 files:

    FontCache-S-1-5-18.dat
    ~FontCache-FontFace.dat
    ~FontCache-S-1-5-21-.....dat
    ~FontCache-System.dat

    Once you stop the service by running: sc stop "FontCache", the open files (signified with ~ in the beginning of the filename), become normal files and you have:
    FontCache-S-1-5-18.dat
    FontCache-FontFace.dat
    FontCache-S-1-5-21-.....dat
    FontCache-System.dat

    Thus, when the delete command is run, it fails to delete the files starting with ~ since there are no such files.

    Should the delete command in the script be:
    del /A /F /Q "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*FontCache*"

    or leave it as is
    del /A /F /Q "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\~FontCache*"
    as we shouldn't touch those files?

    Awaiting your prompt, as always response

    BR. Dimitri
    Last edited by ddelo; 20 Mar 2017 at 07:03.
      My ComputerSystem Spec


  2. Posts : 20,878
    64-bit Windows 10 Pro build 16199
    Thread Starter
       20 Mar 2017 #2

    Hello @Dimitri,

    I like *FontCache* better than ~FontCache as well. I also added a check in the .bat to verify if the service has stopped before continuing.
      My ComputersSystem Spec

  3.    1 Hour Ago #3

    Hi Shawn,

    I tried your script on our windows 10 machine... it deleted the FNTCACHE.DAT file in the windows32 folder but not the other ones in the other location. There was no complaint by the system that I could see.

    Ideas?

    Jeffrey
      My ComputerSystem Spec


  4. Posts : 20,878
    64-bit Windows 10 Pro build 16199
    Thread Starter
       1 Hour Ago #4

    Hello Jeffrey, and welcome to Ten Forums.

    That's ok. It's normal for it to not be able to delete some of the font caches that are currently in use. Plus, some of them get recreated fresh almost immediately after being deleted.
      My ComputersSystem Spec


 

Related Threads
Customization Rebuild Icon Cache in Windows 10 in Tutorials
How to Rebuild the Icon Cache in Windows 10 The icons that display for files in Windows are saved in an icon cache so they can be displayed quickly instead of having to manually scan and slowly load them each time. The icon cache can sometimes...
Issue: Cannot open settings app in Windows 10 - corrupt ImmersiveControlPanel repair/rebuild: What fixed my settings app incase of "TL-DR": Folder Location: C:\Windows\ImmersiveControlPanel\ Running cmd as admin: From C:\cd Windows...
Hi there not particularly W10 specific but I know loads of people use VLC. If you are getting message please wait while font cache is re-built when you have / want subtitles then this method will disable this message and will speed up the...
I have tried clear type, doing the reinstallation of the font packages, but none of them worked and I still have blurry font in games and it makes it hard to read. IF anyone can upload their font folders I would appreciate it. Because Mine are...
Windows 10 Upgrade / Rebuild Issue in Installation and Upgrade
Hi, I upgraded to Windows 10 on my Windows 8.1 device. After I upgraded I came across an issue with a driver (or similar) which meant that my machine was unable to boot into Windows. The only options were for me to rebuild the machine and...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 20:40.
Find Us