foreach (FontFamily fam in Fonts.SystemFontFamilies)
boxFamily.Add(fam);例如,我为"FangSong“获取字体,但对于字体我希望为中文(仿宋)获取字体。
请帮帮我,谢谢。
发布于 2010-12-31 14:54:26
尝尝这个
foreach (FontFamily fam in Fonts.SystemFontFamilies)
{
Label lbl = new Label();
lbl.FontFamily = new FontFamily(fam.ToString());
lbl.Content = fam.ToString();
listBox2.Items.Add(lbl);
}希望这能有所帮助
https://stackoverflow.com/questions/4568447
复制相似问题