programming-examples/c-sharp/Others/Get all system installed font.cs

23 lines
485 B
C#
Raw Normal View History

2019-11-15 12:59:38 +01:00
Get all system installed font
using System;
using System.Drawing;
using System.Drawing.Text;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
public class Test{
static void Main()
{
InstalledFontCollection fonts = new InstalledFontCollection();
for(int j = 0; j < fonts.Families.Length; j++)
{
Console.WriteLine(fonts.Families[j].Name);
}
}
}