mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
fix: empty monospace font with non-empty default font fallback issue
This commit is contained in:
parent
50d742e1eb
commit
ecc1414006
1 changed files with 3 additions and 0 deletions
|
@ -231,7 +231,10 @@ namespace SourceGit
|
||||||
if (string.IsNullOrEmpty(monospaceFont))
|
if (string.IsNullOrEmpty(monospaceFont))
|
||||||
{
|
{
|
||||||
if (!string.IsNullOrEmpty(defaultFont))
|
if (!string.IsNullOrEmpty(defaultFont))
|
||||||
|
{
|
||||||
monospaceFont = $"fonts:SourceGit#JetBrains Mono,{defaultFont}";
|
monospaceFont = $"fonts:SourceGit#JetBrains Mono,{defaultFont}";
|
||||||
|
resDic.Add("Fonts.Monospace", new FontFamily(monospaceFont));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue