10 references to Font
System.Drawing.Common (2)
System.Drawing.Common.Tests (6)
System\Drawing\FontConverterTests.cs (3)
100Font font = new($"Courier New", 8.25f, FontStyle.Regular, GraphicsUnit.Point);
142{ new Font("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.Point), 2 },
143{ new Font("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.Inch), 4 },
System\Drawing\FontTests.cs (3)
203using Font font = new(fontFamily.Name, emSize, style, unit);
367AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, FontStyle.Italic, GraphicsUnit.Document));
384AssertExtensions.Throws<ArgumentException>(null, () => new Font(family.Name, 10, FontStyle.Italic, unit));
System.Windows.Forms.UI.IntegrationTests (1)
WinFormsControlsTest (1)