开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜