File tree 1 file changed +13
-1
lines changed 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,19 @@ static FontResolver()
53
53
if ( isWindows )
54
54
{
55
55
fontDir = System . Environment . ExpandEnvironmentVariables ( @"%SystemRoot%\Fonts" ) ;
56
- SSupportedFonts = System . IO . Directory . GetFiles ( fontDir , "*.ttf" , System . IO . SearchOption . AllDirectories ) ;
56
+ var fontPaths = new List < string > ( ) ;
57
+
58
+ var systemFontPaths = System . IO . Directory . GetFiles ( fontDir , "*.ttf" , System . IO . SearchOption . AllDirectories ) ;
59
+ fontPaths . AddRange ( systemFontPaths ) ;
60
+
61
+ var appdataFontDir = System . Environment . ExpandEnvironmentVariables ( @"%LOCALAPPDATA%\Microsoft\Windows\Fonts" ) ;
62
+ if ( System . IO . Directory . Exists ( appdataFontDir ) )
63
+ {
64
+ var appdataFontPaths = System . IO . Directory . GetFiles ( appdataFontDir , "*.ttf" , System . IO . SearchOption . AllDirectories ) ;
65
+ fontPaths . AddRange ( appdataFontPaths ) ;
66
+ }
67
+
68
+ SSupportedFonts = fontPaths . ToArray ( ) ;
57
69
SetupFontsFiles ( SSupportedFonts ) ;
58
70
return ;
59
71
}
You can’t perform that action at this time.
0 commit comments