winform下字体集:
System.Drawing.FontFamily.Families
wpf下字体集:
System.Windows.Media.Fonts.SystemFontFamilies
winform => wpf:
注:System.Windows.Media.FontFamily…FamilyNames.Values下会列出字体的中英名称;
System.Windows.Media.FontFamily font2= System.Windows.Media.Fonts.SystemFontFamilies.Where(x => x.FamilyNames.Values.Contains(name)).FirstOrDefault();