在 Ubuntu 22.04.2 上,我使用 wine 6.0.3 运行 Windows 可执行文件,但收到一个错误,似乎指向字体问题:
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'SafeMine.Common.UserInterface.DevExpressHelper' threw an exception. ---> System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <15a0cb57e55e40adb4c5afb4c7ddc9e9>:0
at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <15a0cb57e55e40adb4c5afb4c7ddc9e9>:0
at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <15a0cb57e55e40adb4c5afb4c7ddc9e9>:0
at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <15a0cb57e55e40adb4c5afb4c7ddc9e9>:0
at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <15a0cb57e55e40adb4c5afb4c7ddc9e9>:0
at System.Drawing.Font..ctor (System.String familyName, System.Single emSize) [0x00000] in <15a0cb57e55e40adb4c5afb4c7ddc9e9>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single)
at SafeMine.Common.UserInterface.DevExpressHelper..cctor () [0x00039] in <206f1b6e12ee4ce48597ac1c20859a1d>:0
--- End of inner exception stack trace ---
sudo apt install ttf-mscorefonts-installer
但它并没有解决问题。有什么想法吗?