Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions main/SS/Util/SheetUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ namespace NPOI.SS.Util
using System.Collections.Generic;
using SixLabors.Fonts;
using System.Linq;
using System.Globalization;

/**
* Helper methods for when working with Usermodel sheets
Expand Down Expand Up @@ -717,9 +718,9 @@ internal static Font IFont2Font(IFont font1)
// use "Arial". TODO-Fonts: More fallbacks.
SixLabors.Fonts.FontFamily fontFamily;

if (false == SystemFonts.TryGet(font1.FontName, out fontFamily))
if (false == SystemFonts.TryGet(font1.FontName, CultureInfo.CurrentCulture, out fontFamily))
{
if (false == SystemFonts.TryGet("Arial", out fontFamily))
if (false == SystemFonts.TryGet("Arial", CultureInfo.CurrentCulture, out fontFamily))
{
fontFamily = SystemFonts.Families.First();
}
Expand Down