- Removed font mono space check.

This commit is contained in:
Stone-Red-Code
2021-09-15 19:49:47 +02:00
parent 2df2ef3b11
commit 5bc35cf92b
-23
View File
@@ -666,28 +666,6 @@ namespace DesktopMagic
int index = 0;
char[] chars = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' };
foreach (FontFamily ff in Fonts.SystemFontFamilies)
{
double charWidth = -1;
bool monospace = true;
textBlock.FontFamily = ff;
foreach (char c in chars)
{
textBlock.Text = "";
textBlock.Text += c.ToString();
textBlock.UpdateLayout();
if (charWidth != textBlock.ActualWidth && charWidth != -1)
{
monospace = false;
break;
}
charWidth = textBlock.ActualWidth;
}
if (monospace)
{
ComboBoxItem comboBoxItem = new()
{
@@ -702,7 +680,6 @@ namespace DesktopMagic
}
index++;
}
}
if (fontComboBox.SelectedIndex == -1)
{
fontComboBox.SelectedIndex = 0;