Listing Installed Fonts in C#

It’s quite easy !

First add this line :


using System.Drawing.Text;

After that a simple object is needed :


InstalledFontCollection fonts = new InstalledFontCollection();

And now you just need to read each name :


for(int i = 0; i < fonts.Families.Length; i++)
Console.WriteLine(fonts.Families[i].Name);

The result of this simple application give the ‘name’ of the font.
The font file name can be different !


Tags: ,

Leave a Reply