"Quick Learn": IT tips by experts

Microsoft => C# => Topic started by: abhimanyu on October 22, 2013, 04:38:54 PM

Title: How to find font is available in computer using c# application
Post by: abhimanyu on October 22, 2013, 04:38:54 PM
Code: [Select]
var fontsCollection = new InstalledFontCollection();
            foreach (var fontFamiliy in fontsCollection.Families)
            {
                if (fontFamiliy.Name == "Font Name")
                {
                      messagebox.show("Available");
                }
                else
                {
                      messagebox.show("Not Available");
                }
             }