We are running our project with Spire references in a Linux container on Azure. We are currently not adding or installing any fonts and our project is using the following references...
- Code: Select all
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.3" />
<PackageReference Include="Spire.Officefor.NETStandard" Version="7.12.0" />
[b]and[/b]
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Drawing.EnableUnixSupport" Value="true" />
</ItemGroup>
and we are constantly getting the below error messages...
- Code: Select all
Cannot found font installed on the system.Arial
at sprᳫ.ᜀ(String A_0, FontStyle A_1, Boolean A_2)
at spr↵.ᜀ(spr↲ A_0, Int32 A_1, RectangleF A_2)
at spr↵.ᜀ(spr㖬 A_0, spr A_1, Int32 A_2, Int32 A_3, Int32 A_4, Int32 A_5, spr↳ A_6)
at spr↵.ᜀ(spr A_0, Int32 A_1, Int32 A_2, Int32 A_3, Int32 A_4, spr↳ A_5)
at Spire.Xls.Core.Spreadsheet.XlsRange.AutoFitColumns()
Our program always crashes when we call the AutoFit() due to Spire not finding the Arial font. Given the above information, is there a specific Docker version we should be using? Do you perhaps have some other way of getting around this? Right now we have to comment out the
references to get the package to run correctly.AutoFit()