mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-21 10:25:00 +00:00
parent
1ee7d1184e
commit
250949f588
1 changed files with 10 additions and 1 deletions
|
@ -671,7 +671,16 @@ namespace SourceGit
|
|||
prevChar = c;
|
||||
}
|
||||
|
||||
trimmed.Add(sb.ToString());
|
||||
var fontName = sb.ToString();
|
||||
try
|
||||
{
|
||||
_ = new Typeface(fontName).GlyphTypeface;
|
||||
}
|
||||
catch
|
||||
{
|
||||
continue;
|
||||
}
|
||||
trimmed.Add(fontName);
|
||||
}
|
||||
|
||||
return trimmed.Count > 0 ? string.Join(',', trimmed) : string.Empty;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue