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

[CRSH] Crashes caused by missing fonts #557

Open
zyppe opened this issue Oct 17, 2024 · 0 comments
Open

[CRSH] Crashes caused by missing fonts #557

zyppe opened this issue Oct 17, 2024 · 0 comments
Labels
crash Crash report

Comments

@zyppe
Copy link

zyppe commented Oct 17, 2024

Shortly describe what were you doing before crash
Just start it, just crash.

Include event files here
This is caused by the code which writes
this.lvDevices.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular);
"Tohoma" may not preinstalled in Linux or other OS.
which will cause:

System.InvalidOperationException: Could not create glyphTypeface. Font family: $Default (key: ). Style: Normal. Weight: Normal. Stretch: Normal
   at Avalonia.Media.Typeface.get_GlyphTypeface()
   at Avalonia.Rendering.Composition.Compositor.get_DiagnosticTextRenderer()
   at Avalonia.Rendering.Composition.Compositor.CreateCompositionTarget(Func`1 surfaces)
   at Avalonia.Rendering.Composition.CompositingRenderer..ctor(IRenderRoot root, Compositor compositor, Func`1 surfaces)

Desktop (please complete the following information):

  • OS: openSUSE Tumbleweed-Slowroll 20241002 x86_64 with glibc 2.40
  • Application version: 5.1.0.0

Additional context
Maybe it should better choose a fallback font which can run on Linux or other.

@zyppe zyppe added the crash Crash report label Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Crash report
Projects
None yet
Development

No branches or pull requests

1 participant