-
Notifications
You must be signed in to change notification settings - Fork 2
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
[Bug] Crash before launching with Exception System.InvalidOperationException: Default font family name can't be null or empty
#2
Comments
can you test using latest nightly Avalonia version? I'd be interested if the recent workarounds help you in any way. |
It won't crash now, but if I try to load the font from a local resource, all the text disappears. public static AppBuilder BuildAvaloniaApp()
{
IconProvider.Current.Register<FontAwesomeIconProvider>();
return AppBuilder.Configure<App>()
.UsePlatformDetect()
//.WithInterFont() If I don't want to use interfont
.With(new FontManagerOptions
{
FontFallbacks = new[]
{
new FontFallback
{
FontFamily = new FontFamily("avares://Chief/Assets/MicrosoftYaHei.ttf#Microsoft YaHei")
}
}
})
.LogToTrace()
.UseReactiveUI();
} But if we add interfont support, everything will work fine. Hope these information could help you! |
I have the feeling that this line is wrong somehow. You may need to load the font file itself from the assets before. Please scan GH discussions for reference. |
feat: build ModuleInstall page; refactor: detach ModuleManage and Config page's column definition and row definition
Waiting Avalonia fix this issue.
The text was updated successfully, but these errors were encountered: