C#获取系统中的所有字体



private void button1_Click(object sender, EventArgs e)
{
StringBuilder str 
= new StringBuilder(2000);
System.Drawing.Text.InstalledFontCollection fonts 
= new System.Drawing.Text.InstalledFontCollection();
foreach (System.Drawing.FontFamily family in fonts.Families)
{
str.Append(family.Name);
str.AppendLine();
}
textBox1.Text 
= str.ToString();
textBox1.Focus();
textBox1.SelectAll();
}
C#获取系统中的所有字体

C#获取系统中的所有字体




本文转自黄聪博客园博客,原文链接:http://www.cnblogs.com/huangcong/archive/2010/03/27/1698491.html,如需转载请自行联系原作者