Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eaa4e22

Browse files
committed
Merge pull request ArthurHub#31 from WyPeR/master
(WpfAdapter.cs) fix AddFontFamily(new FontFamilyAdapter(family)); fa…
2 parents a846872 + e05e700 commit eaa4e22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Source/HtmlRenderer.WPF/Adapters/WpfAdapter.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,13 @@ private WpfAdapter()
6363

6464
foreach (var family in Fonts.SystemFontFamilies)
6565
{
66-
AddFontFamily(new FontFamilyAdapter(family));
66+
try
67+
{
68+
AddFontFamily(new FontFamilyAdapter(family));
69+
}
70+
catch
71+
{
72+
}
6773
}
6874
}
6975

0 commit comments

Comments
 (0)