How to Fix Corrupted Font Cache & Missing Glyphs in Windows 11

Quick Answer: How to Rebuild Corrupted Font Cache

To fix missing text glyphs, square boxes (□□□), and runaway fontdrvhost.exe CPU spikes: (1) Stop the Windows font services via elevated Command Prompt: net stop fontcache & net stop FontCache3.0.0.0. (2) Delete locked cache databases: del /A /F /Q %windir%\System32\FNTCACHE.DAT. (3) Restart the service: net start fontcache. (4) For automated 1-click purging without manual CMD typing or restarting your PC, use the free 52 KB portable tool Pexoris FontCacheRebuilder.

Why Does Windows Corrupt Font Caches & Show Square Boxes?

Windows renders millions of text characters per second across desktop windows, taskbars, browsers, and productivity apps. To avoid recalculating vector Bézier curves for every letter on every frame, the Windows DirectWrite and GDI subsystems cache pre-rasterized glyph metrics into binary files:

When Windows experiences an unexpected shutdown, a graphic driver update crash, or a corrupted font file installation, the internal binary indexes of these .dat files become malformed. As a result:

  1. Square Boxes (□□□) & Question Marks: The font engine cannot find the glyph metric in the cache, rendering the missing-glyph fallback symbol (the "tofu" rectangle).
  2. FontDrvHost.exe 100% CPU Spike: The User Mode Font Driver Host enters an infinite recursion loop trying to parse broken font headers.
  3. "File in Use" Lock Error: When you attempt to delete FNTCACHE.DAT manually, Windows blocks you because the background service has an active handle lock on the file.

Pexoris FontCacheRebuilder

Automate service stopping, delete locked FNTCACHE.DAT, and broadcast WM_FONTCHANGE in 1 click.

Get Free FontCacheRebuilder →

Method 1: Manual Fix via Elevated Command Prompt (Native Windows)

If you prefer using native Windows terminal commands, you can stop the background font services, delete the cached tables, and trigger a regeneration cycle:

Step 1: Open Terminal as Administrator

Press Win + X and select Terminal (Admin) or search for cmd.exe, right-click, and choose Run as administrator.

Step 2: Stop Font Cache Services

Execute the following commands to disengage active file locks:

:: Stop the primary Windows Font Cache Service net stop fontcache :: Stop the WPF font cache service net stop FontCache3.0.0.0

Step 3: Delete Locked Cache Databases

Run these commands to delete corrupted system and user-profile font cache databases:

:: Delete legacy GDI font cache del /A /F /Q "%windir%\System32\FNTCACHE.DAT" :: Delete LocalService cache tables del /A /F /Q "%windir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*.dat" del /A /F /Q "%windir%\ServiceProfiles\LocalService\AppData\Local\FontCache3.0.0.0.dat" :: Delete user-level font cache del /A /F /Q "%LocalAppData%\FontCache\*.dat"

Step 4: Restart Services & Refresh Windows Shell

Restart the service to recreate clean cache indices:

:: Restart font service net start fontcache :: Restart Windows Explorer to reload shell font metrics taskkill /F /IM explorer.exe & start explorer.exe

Method 2: 1-Click Automated Fix with Pexoris FontCacheRebuilder

Typing multiple command lines, handling locked file exceptions, and killing stuck fontdrvhost.exe processes manually can be tedious. Pexoris FontCacheRebuilder bundles the entire diagnostic and restoration workflow into a 52 KB portable application:

Download Pexoris FontCacheRebuilder Free (52 KB) →