WPF 获取计算机字体
//加载计算机上可用的字体 public void LoadFonts(object ietfLanguageTag) { try { var sysFonts = Fonts.SystemFontFamilies; foreach (var item in sysFonts) { var key = XmlLanguage.GetLanguage(ietfLanguageTag.ToString()); var fontName = string.Empty; if (item.FamilyNames.TryGetValue(key, out fontName)) { //do action } } }catch { } }