What is a Visual Studio file font folder?

Today I started playing with the WinDirStat application, and I noticed that this folder:

C:\Users\<Username>\AppData\Local\Microsoft\Visual Studio\Font Cache\ 

... takes up to 10 GB on my computer containing font files. Does anyone know what this folder is for, and can it be deleted?

10GB is too much, and the name of the folder with the "cache" in it makes me want to delete it ...

+5
source share
2 answers

OK I found the reason for this.

I had a WPF demo project in VS2012 that included this particular font, and was configured to copy it to the output directory. It turns out that VS will copy the font files in the cache folder every time:

  • You open a new WPF project with the font file included in it (at least when it is configured to copy to the output directory).
  • A new font file has been added to the WPF project.

The fact is that it does not delete them at the end (when you close VS).

I don’t know if the font cache service (which is hard for me to find now), but apparently no one does this on my machine for some reason and for quite some time ... These files have been accumulating for more than a year now. ..

I also deleted the contents of the folder without seeing any problems.

10GB less! :)

+2
source

This page describes how to disable the font cache:

You can disable the WPF font cache by following these steps:

  • Start> Control Panel> Administrative Tools> Services
  • Scroll down to Windows Presentation Foundation Font Cache 3.0.0.0 , right-click and select Properties
  • In the window, select Disabled in startup type compilation
+1
source

All Articles