fix: endless loop when character missing both in current active font and the default font and the fallback font is same with the default.

This commit is contained in:
leo 2024-03-21 20:55:08 +08:00
parent 8f3f011d81
commit 98a46f8211
6 changed files with 15 additions and 18 deletions

View file

@ -4,6 +4,7 @@ using System.Runtime.Versioning;
using Avalonia;
using Avalonia.Dialogs;
using Avalonia.Media;
namespace SourceGit.Native
{
@ -12,9 +13,11 @@ namespace SourceGit.Native
{
public void SetupApp(AppBuilder builder)
{
#if USE_FONT_INTER
builder.WithInterFont();
#endif
builder.With(new FontManagerOptions()
{
DefaultFamilyName = "fonts:SourceGit#JetBrains Mono",
});
// Free-desktop file picker has an extra black background panel.
builder.UseManagedSystemDialogs();
}