wpt how to get been localized list of Fonts?
foreach (FontFamily fam in Fonts.SystemFontFamilies)
开发者_开发问答 boxFamily.Add(fam);
For example, I get font for "FangSong",but i want get for Chinese(仿宋) about font.
please help me ,Thank you.
try this
foreach (FontFamily fam in Fonts.SystemFontFamilies)
{
Label lbl = new Label();
lbl.FontFamily = new FontFamily(fam.ToString());
lbl.Content = fam.ToString();
listBox2.Items.Add(lbl);
}
hope this helps
精彩评论