General Rebuild Font Cache in Windows 11


text_size_banner.png

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

The font cache is a file or set of files used by Windows to manage and display the fonts installed on your PC so they load faster.

Sometimes the font cache may become corrupted and cause fonts to be garbled, not rendering properly, or displaying invalid characters. 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.


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




Here's How:

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


(Contents of 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 Brink


 

Attachments

Last edited:
Hi Brink, is this script up-to-date for the current builds of Windows 11?

I'm experiencing a lot of confusion due to some sort of font caching and I don't know how to reset it. I have manually deleted some specific fonts that I installed myself in the font folder (opened through Win+r, shell:fonts). After deleting them there and using this script above and deleting various other font cache locations after stopping the fontcache and fontcache and FontCache3.0.0.0 services and then restarting them, but these fonts are still viewable and usable in gvim.

Have you got any idea what is going on here? Thanks.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkStation P360 Ultra
    CPU
    Intel Core i7-12700
    Memory
    48 GiB
    Monitor(s) Displays
    2x Dell U2158D
    Screen Resolution
    2x QHD
    Keyboard
    ThinkPad Keyboard II Bluetooth
    Mouse
    Logitech MX Master 3
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkPad T480s
    CPU
    Intel Core i7-8650U
    Memory
    24 GiB
    Screen Resolution
    1080p
Now I tried to install 'IBMPlexSans-Medium.ttf'.
1.jpg


Then removed.
2.jpg


Moreover, the service 'Windows Font Cache Service' is disabled.
 

My Computer

System One

  • OS
    Microsoft Windows 11 Home
    Computer type
    PC/Desktop
    Manufacturer/Model
    MSI MS-7D98
    CPU
    Intel Core i5-13490F
    Motherboard
    MSI B760 GAMING PLUS WIFI
    Memory
    2 x 16 Patriot Memory (PDP Systems) PSD516G560081
    Graphics Card(s)
    GIGABYTE GeForce RTX 4070 WINDFORCE OC 12G (GV-N4070WF3OC-12GD)
    Sound Card
    Bluetooth Аудио
    Monitor(s) Displays
    INNOCN 15K1F
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD_BLACK SN770 250GB
    KINGSTON SNV2S1000G (ELFK0S.6)
    PSU
    Thermaltake Toughpower GF3 1000W
    Case
    CG560 - DeepCool
    Cooling
    ID-COOLING SE-224-XTS / 2 x 140Mm Fan - rear and top; 3 x 120Mm - front
    Keyboard
    Corsair K70 RGB TKL
    Mouse
    Corsair KATAR PRO XT
    Internet Speed
    100 Mbps
    Browser
    Firefox
    Antivirus
    Microsoft Defender Antivirus
    Other Info
    https://www.userbenchmark.com/UserRun/66553205
Hi Brink, is this script up-to-date for the current builds of Windows 11?

I'm experiencing a lot of confusion due to some sort of font caching and I don't know how to reset it. I have manually deleted some specific fonts that I installed myself in the font folder (opened through Win+r, shell:fonts). After deleting them there and using this script above and deleting various other font cache locations after stopping the fontcache and fontcache and FontCache3.0.0.0 services and then restarting them, but these fonts are still viewable and usable in gvim.

Have you got any idea what is going on here? Thanks.
Hello Jason, :alien:

Rebuilding the font cache is only for fixing fonts that are not displaying properly. It won't help with fonts that may not have been fully uninstalled.

Depending on how the font was installed, you might check the options in the tutorial below to see if it may still be listed in one of them.


In addition, check to see if the uninstalled font may still be referenced in the registry key below, and delete it if so.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts
 
Last edited:

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    CyberPower CP1500PFCLCD
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Surface Laptop 7 Copilot+ PC
    CPU
    Snapdragon X Elite (12 core) 3.42 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Monitor(s) Displays
    15" HDR
    Screen Resolution
    2496 x 1664
    Hard Drives
    1 TB SSD
    Internet Speed
    Wi-Fi 7 and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender
Back
Top Bottom