Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to detect which font is used #226

Open
CyborTronik opened this issue Mar 3, 2024 · 0 comments
Open

Unable to detect which font is used #226

CyborTronik opened this issue Mar 3, 2024 · 0 comments

Comments

@CyborTronik
Copy link

Could you please make the exception selfexplanatory? so I can fix the dependencies.

Background: I've installed XCP-NG Center on linux via wine and is falling with an exception that it cannot load a font. And the problem is that the exception doesn't say which font is trying to load.

System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <cf01cf071e764982a0f6bb8c6f5517e3>: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 <cf01cf071e764982a0f6bb8c6f5517e3>: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 <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet) [0x00000] in <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte)
  at splash_xcp_ng.SplashForm.InitializeComponent () [0x0004f] in <16ae16145a664fdc99f8bbd4a7a12e76>:0 
  at splash_xcp_ng.SplashForm..ctor () [0x00052] in <16ae16145a664fdc99f8bbd4a7a12e76>:0 
  at (wrapper remoting-invoke-with-check) splash_xcp_ng.SplashForm..ctor()
  at splash_xcp_ng.Program.Main () [0x0000b] in <16ae16145a664fdc99f8bbd4a7a12e76>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <cf01cf071e764982a0f6bb8c6f5517e3>: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 <cf01cf071e764982a0f6bb8c6f5517e3>: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 <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet) [0x00000] in <cf01cf071e764982a0f6bb8c6f5517e3>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte)
  at splash_xcp_ng.SplashForm.InitializeComponent () [0x0004f] in <16ae16145a664fdc99f8bbd4a7a12e76>:0 
  at splash_xcp_ng.SplashForm..ctor () [0x00052] in <16ae16145a664fdc99f8bbd4a7a12e76>:0 
  at (wrapper remoting-invoke-with-check) splash_xcp_ng.SplashForm..ctor()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant