So we are running aspose slides net in an alpine container and facing the error below when the presentation is saved to a memory stream.
System.ArgumentException: Font '?' cannot be found.
at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status)
at System.Drawing.FontFamily.GetCellAscent(FontStyle style)
atont )
attring ,oolean , Int32 , & )
at␦ ,nt32 , Boolean , , &)
at oolean&)
at .()
at ..ctor(TextFrame ,␦, IBaseSlide ,␦[] )
at␦ , ␦)
at ingle, Single , ␦ )
at ␦&, RectangleF& , ␦ )
at hapeFrame&, RectangleF& , ␦ )
at
t .(IAutoShape , , , )
at .(IShape , , , )
at .(IGroupShape , , , )
at .(IBaseSlide , , )
at .(ILayoutSlide , , )
at .(ILayoutSlide )
at ␦ , ILayoutSlide, ␦␦ ,
t ␦ , IMasterSlide, Boolean ,
t resentation , , IPptxOptions , InterruptionToken )
at resentation , Stream, , IPptxOptions , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , , IPptxOptions )
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format)
at Program.<Main>$(String[] args) in /app/Program.cs:line 26
We are using Aspose.Slides.NET Version=25.5.0.
I want to know if this issue can be resolved without changing the runtime alpine image or using Aspose.Slides.CrossPlatform we already tried it and had other issues come up unrelated to aspose slides. So neither of those are good options for us.
I am uploading the proof of concept app which can reproduce the error when you build and run the docker file.
SlidesTest.zip (405.2 KB)