From ecc14140062f24da354f275cf0b502045be7243e Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 19 Aug 2024 19:18:31 +0800 Subject: [PATCH] fix: empty monospace font with non-empty default font fallback issue --- src/App.axaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/App.axaml.cs b/src/App.axaml.cs index ce6b5ced..be553064 100644 --- a/src/App.axaml.cs +++ b/src/App.axaml.cs @@ -231,7 +231,10 @@ namespace SourceGit if (string.IsNullOrEmpty(monospaceFont)) { if (!string.IsNullOrEmpty(defaultFont)) + { monospaceFont = $"fonts:SourceGit#JetBrains Mono,{defaultFont}"; + resDic.Add("Fonts.Monospace", new FontFamily(monospaceFont)); + } } else {