10 references to Font
System.Drawing.Common.Tests (7)
System\Drawing\FontTests.cs (7)
188
using Font font =
new
(fontFamily, emSize, style, unit);
329
AssertExtensions.Throws<ArgumentNullException>("family", () => new
Font
((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display));
346
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family, 10, FontStyle.Italic, GraphicsUnit.Display));
366
AssertExtensions.Throws<ArgumentException>("emSize", () => new
Font
(family, emSize, FontStyle.Italic, GraphicsUnit.Document));
383
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family, 10, FontStyle.Italic, unit));
879
using Font font1 =
new
(family1, 1, FontStyle.Bold, GraphicsUnit.Point);
882
using Font font2 =
new
(family2, 1, FontStyle.Bold, GraphicsUnit.Point);
System.Windows.Forms (2)
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
144
result = new
Font
(result.FontFamily, MinSize, result.Style, GraphicsUnit.Point);
149
result = new
Font
(result.FontFamily, MaxSize, result.Style, GraphicsUnit.Point);
System.Windows.Forms.Design (1)
System\Drawing\Design\FontNameEditor.cs (1)
72
using Font font =
new
(fontFamily, fontSize, fontStyle, GraphicsUnit.Pixel);