Kourosh Kourosh - 11 months ago 66
C# Question

How to get the path to the Windows fonts folder?

I'm using C# to get the exact path of the system's fonts folder.
Couldn't find which class/dll does it.

Answer Source
string fontsfolder = System.Environment.GetFolderPath(
System.Environment.SpecialFolder.Fonts);

Note that the Fonts folder in the SpecialFolder enumeration is only available in .Net 4 and beyond.