Get All Installed Fonts in C#
If you need to retrieve all the fonts installed on your environment,you just need InstalledFontCollection class.
This class is a collection of storing all the installed fonts and enabled you to populate them via iteration.
To get all the installed fonts ,we need first add reference to System.Drawing and then import it in our project with using statement:
This will let us use InstalledFontCollection class:Create a windows forms,add a listbox and then add these codes:
Now lets build a sample.
(InstalledFontCollection col =
} After we run,we'll be populating them:
Hope that helps!