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:
C:\Windows\System32\FNTCACHE.DAT— The primary system-wide GDI font cache.C:\Windows\ServiceProfiles\LocalService\AppData\Local\FontCache\*.dat— System-level DirectWrite font tables.FontCache3.0.0.0.dat— The Windows Presentation Foundation (WPF) glyph cache used by modern desktop software.
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:
- Square Boxes (□□□) & Question Marks: The font engine cannot find the glyph metric in the cache, rendering the missing-glyph fallback symbol (the "tofu" rectangle).
- FontDrvHost.exe 100% CPU Spike: The User Mode Font Driver Host enters an infinite recursion loop trying to parse broken font headers.
- "File in Use" Lock Error: When you attempt to delete
FNTCACHE.DATmanually, 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.
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:
Step 3: Delete Locked Cache Databases
Run these commands to delete corrupted system and user-profile font cache databases:
Step 4: Restart Services & Refresh Windows Shell
Restart the service to recreate clean cache indices:
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:
- Automatic Lock Disengage: Safely halts
FontCacheandFontCache3.0.0.0services without manual command typing. - FontDrvHost CPU Throttle: Automatically locates and terminates hung font driver processes pinning your CPU.
- WM_FONTCHANGE Win32 Broadcast: Sends the native typography reload message to all open programs, so you don't even need to restart your computer.