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

@ -72,8 +72,6 @@ namespace SourceGit.Views
InstalledFonts = new AvaloniaList<FontFamily>();
InstalledFonts.Add(new FontFamily("fonts:SourceGit#JetBrains Mono"));
InstalledFonts.AddRange(FontManager.Current.SystemFonts);
InstalledFonts.Remove(FontManager.Current.DefaultFontFamily);
InstalledFonts.Add(FontManager.Current.DefaultFontFamily);
InstalledMonospaceFonts = new AvaloniaList<FontFamily>();
InstalledMonospaceFonts.Add(new FontFamily("fonts:SourceGit#JetBrains Mono"));