Skip to content

Commit

Permalink
Set Control.Defaultfont to SystemFonts.MessageBoxFont (#656)
Browse files Browse the repository at this point in the history
Set Control.Defaultfont to SystemFonts.MessageBoxFont
  • Loading branch information
RussKie authored Jun 3, 2019
2 parents c99df8c + 524df06 commit 0508793
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2274,7 +2274,7 @@ public static Font DefaultFont
{
if (defaultFont == null)
{
defaultFont = SystemFonts.DefaultFont;
defaultFont = SystemFonts.MessageBoxFont;
Debug.Assert(defaultFont != null, "defaultFont wasn't set!");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public void Font_SetWithHandler_CallsFontChanged()
control.FontChanged += handler;

// Set different.
Font font1 = SystemFonts.MenuFont;
Font font1 = new Font("Arial", 8.25f);
control.Font = font1;
Assert.Same(font1, control.Font);
Assert.Equal(1, callCount);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ public static IEnumerable<object[]> Height_NeedsHeightInfo_TestData()
ColumnCount = 1,
AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells
},
22, 0, 22
25, 0, 25
};
yield return new object[] { new DataGridView { ColumnCount = 1, VirtualMode = true }, 6, 1, 5 };

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public void Font_SetWithHandler_CallsFontChanged()
control.FontChanged += handler;

// Set different.
Font font1 = SystemFonts.MenuFont;
Font font1 = new Font("Arial", 8.25f);
control.Font = font1;
Assert.Same(font1, control.Font);
Assert.Equal(1, callCount);
Expand Down

0 comments on commit 0508793

Please sign in to comment.