Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 773
Kourosh Avatar asked Sep 13 '11 19:09

Kourosh


1 Answers

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.

like image 77
Tigran Avatar answered Sep 18 '22 17:09

Tigran