47 references to GenericMonospace
System.Drawing.Common.Tests (47)
mono\System.Imaging\MetafileTest.cs (1)
286
Font test_font = new(FontFamily.
GenericMonospace
, 12);
System\Drawing\Drawing2D\GraphicsPathTests.cs (19)
995
gpi.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new Point(10, 10), StringFormat.GenericDefault);
998
gpf.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault);
1007
gpi.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new Rectangle(10, 10, 10, 10), StringFormat.GenericDefault);
1010
gpf.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault);
1019
gpi.AddString("mono", FontFamily.
GenericMonospace
, 0, -10, new Point(10, 10), StringFormat.GenericDefault);
1023
gpi.AddString("mono", FontFamily.
GenericMonospace
, 0, -10, new Rectangle(10, 10, 10, 10), StringFormat.GenericDefault);
1026
gpf.AddString("mono", FontFamily.
GenericMonospace
, 0, -10, new PointF(10f, 10f), StringFormat.GenericDefault);
1030
gpf.AddString("mono", FontFamily.
GenericMonospace
, 0, -10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault);
1040
gp1.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new RectangleF(10f, 10f, 10f, 10f), null);
1043
gp2.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault);
1046
gp3.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericTypographic);
1055
gpi.AddString(string.Empty, FontFamily.
GenericMonospace
, 0, 10, new Point(10, 10), StringFormat.GenericDefault);
1058
gpi.AddString(string.Empty, FontFamily.
GenericMonospace
, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault);
1067
gp.AddString(null, FontFamily.
GenericMonospace
, 0, 10, new Point(10, 10), StringFormat.GenericDefault));
1069
gp.AddString(null, FontFamily.
GenericMonospace
, 0, 10, new PointF(10f, 10f), StringFormat.GenericDefault));
1071
gp.AddString(null, FontFamily.
GenericMonospace
, 0, 10, new Rectangle(10, 10, 10, 10), StringFormat.GenericDefault));
1073
gp.AddString(null, FontFamily.
GenericMonospace
, 0, 10, new RectangleF(10f, 10f, 10f, 10f), StringFormat.GenericDefault));
1636
gp.AddString("mono", FontFamily.
GenericMonospace
, 0, 10, new Point(20, 20), StringFormat.GenericDefault);
1979
gp.AddString("Mono::", FontFamily.
GenericMonospace
, 0, 10, new Point(10, 10), StringFormat.GenericDefault);
System\Drawing\FontFamilyTests.cs (7)
69
FontFamily fontFamily = FontFamily.
GenericMonospace
;
71
yield return new object[] { FontFamily.
GenericMonospace
, FontFamily.
GenericMonospace
, true };
72
yield return new object[] { FontFamily.
GenericMonospace
, FontFamily.GenericSansSerif, false };
122
using FontFamily fontFamily1 = FontFamily.
GenericMonospace
;
123
using FontFamily fontFamily2 = FontFamily.
GenericMonospace
;
279
FontFamily fontFamily = FontFamily.
GenericMonospace
;
System\Drawing\FontTests.cs (20)
13
yield return new object[] { FontFamily.
GenericMonospace
, 1 };
19
yield return new object[] { FontFamily.
GenericMonospace
, 1 };
26
yield return new object[] { FontFamily.
GenericMonospace
, FontFamily.GenericSerif };
28
yield return new object[] { FontFamily.GenericSansSerif, FontFamily.
GenericMonospace
};
55
Assert.False(FontFamily.
GenericMonospace
.Equals(nullFamily));
90
yield return new object[] { FontFamily.
GenericMonospace
, 1, FontStyle.Bold };
132
yield return new object[] { FontFamily.
GenericMonospace
, 1, GraphicsUnit.Document };
172
yield return new object[] { FontFamily.
GenericMonospace
, 1, FontStyle.Bold, GraphicsUnit.Document };
214
yield return new object[] { FontFamily.
GenericMonospace
, 1, FontStyle.Bold, GraphicsUnit.Document, 0 };
256
yield return new object[] { FontFamily.
GenericMonospace
, 1, FontStyle.Bold, GraphicsUnit.Document, 0, true };
299
using FontFamily family = FontFamily.
GenericMonospace
;
532
using FontFamily family = FontFamily.
GenericMonospace
;
574
using FontFamily family = FontFamily.
GenericMonospace
;
685
using FontFamily family = FontFamily.
GenericMonospace
;
704
using FontFamily family = FontFamily.
GenericMonospace
;
734
using FontFamily family = FontFamily.
GenericMonospace
;
762
using FontFamily family = FontFamily.
GenericMonospace
;
773
using FontFamily family = FontFamily.
GenericMonospace
;
781
using FontFamily family = FontFamily.
GenericMonospace
;
881
using FontFamily family2 = FontFamily.
GenericMonospace
;