开发者

wpt how to get been localized list of Fonts?

开发者 https://www.devze.com 2023-02-02 02:10 出处:网络
foreach (FontFamily fam in Fonts.SystemFontFamilies) 开发者_开发问答boxFamily.Add(fam); For example, I get font for \"FangSong\",but i want get for Chinese(仿宋) about font.
  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

精彩评论

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