File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ namespace NPOI.SS.Util
23
23
using System . Collections . Generic ;
24
24
using SixLabors . Fonts ;
25
25
using System . Linq ;
26
+ using System . Globalization ;
26
27
27
28
/**
28
29
* Helper methods for when working with Usermodel sheets
@@ -717,9 +718,9 @@ internal static Font IFont2Font(IFont font1)
717
718
// use "Arial". TODO-Fonts: More fallbacks.
718
719
SixLabors . Fonts . FontFamily fontFamily ;
719
720
720
- if ( false == SystemFonts . TryGet ( font1 . FontName , out fontFamily ) )
721
+ if ( false == SystemFonts . TryGet ( font1 . FontName , CultureInfo . CurrentCulture , out fontFamily ) )
721
722
{
722
- if ( false == SystemFonts . TryGet ( "Arial" , out fontFamily ) )
723
+ if ( false == SystemFonts . TryGet ( "Arial" , CultureInfo . CurrentCulture , out fontFamily ) )
723
724
{
724
725
fontFamily = SystemFonts . Families . First ( ) ;
725
726
}
You can’t perform that action at this time.
0 commit comments