How to

get installed fonts

Published: 20. January 2009 | Updated: 20. January 2009
License: Microsoft Public License (MS-PL)
Categories: Windows
Tags: C# Text Windows
Was this snippet helpful for you? YESYES / NONO

Import namespaces

using System.Drawing;
using System.Drawing.Text;

Code

InstalledFontCollection installedFonts = new InstalledFontCollection();

foreach (FontFamily ff in installedFonts.Families)
{
    Console.WriteLine(ff.Name);
}
Send us feedback about this snippet »



Related Snippets: