Kourosh Kourosh - 1 month ago 16
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
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.

Comments