I am using .NET 6 app which is hosting in docker linux.
When I run PdfSharp.Drawing.FontHelper.CreateFont then I get error
The type initializer for 'Gdip' threw an exception. System.Drawing.Common is not supported on non-Windows platforms. See
https://aka.ms/systemdrawingnonwindows for more information.
Breaking change: System.Drawing.Common only supported on Windows - .NET
Learn about the .NET 6 breaking change where the System.Drawing.Common package is no longer support on non-Windows operating systems.
Is there any way to use System.Drawing.Common is linux-based container?
Maybe someone has a solution to this problem?