如何使用C#得到系统中所有的字体

取出系统中所有的字体

foreach (FontFamily oneFontFamily in FontFamily.Families)
{
     tscbFont.Items.Add(oneFontFamily.Name);
}

tscbFont.SelectedItem = "宋体"; //默认字体为宋体
tscbSize.SelectedIndex = 2;

posted @ 2007-12-27 10:30  海底的鱼  阅读(455)  评论(0)    收藏  举报