36 references to GenericSerif
System.Drawing.Common.Tests (36)
mono\System.Drawing\GraphicsTests.cs (1)
2014using Font font = new(FontFamily.GenericSerif, 11.0f);
System\Drawing\FontFamilyTests.cs (2)
140using FontFamily fontFamily1 = FontFamily.GenericSerif; 141using FontFamily fontFamily2 = FontFamily.GenericSerif;
System\Drawing\FontTests.cs (33)
14yield return new object[] { FontFamily.GenericSerif, float.MaxValue }; 20yield return new object[] { FontFamily.GenericSerif, float.MaxValue }; 26yield return new object[] { FontFamily.GenericMonospace, FontFamily.GenericSerif }; 27yield return new object[] { FontFamily.GenericSansSerif, FontFamily.GenericSerif }; 91yield return new object[] { FontFamily.GenericSerif, 2, FontStyle.Italic }; 93yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout }; 94yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline }; 95yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)(-1) }; 96yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MinValue }; 97yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MaxValue }; 133yield return new object[] { FontFamily.GenericSerif, 2, GraphicsUnit.Inch }; 135yield return new object[] { FontFamily.GenericSerif, 4, GraphicsUnit.Point }; 136yield return new object[] { FontFamily.GenericSerif, float.MaxValue, GraphicsUnit.Pixel }; 137yield return new object[] { FontFamily.GenericSerif, 16, GraphicsUnit.World }; 173yield return new object[] { FontFamily.GenericSerif, 2, FontStyle.Italic, GraphicsUnit.Inch }; 175yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout, GraphicsUnit.Point }; 176yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline, GraphicsUnit.Pixel }; 177yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)(-1), GraphicsUnit.World }; 178yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MinValue, GraphicsUnit.Millimeter }; 179yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MaxValue, GraphicsUnit.Millimeter }; 215yield return new object[] { FontFamily.GenericSerif, 2, FontStyle.Italic, GraphicsUnit.Inch, 1 }; 217yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout, GraphicsUnit.Point, 10 }; 218yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline, GraphicsUnit.Pixel, 10 }; 219yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)(-1), GraphicsUnit.World, 8 }; 220yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MinValue, GraphicsUnit.Millimeter, 127 }; 221yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MaxValue, GraphicsUnit.Millimeter, 200 }; 257yield return new object[] { FontFamily.GenericSerif, 2, FontStyle.Italic, GraphicsUnit.Inch, 1, false }; 259yield return new object[] { FontFamily.GenericSerif, 4, FontStyle.Strikeout, GraphicsUnit.Point, 10, false }; 260yield return new object[] { FontFamily.GenericSerif, float.MaxValue, FontStyle.Underline, GraphicsUnit.Pixel, 10, true }; 261yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)(-1), GraphicsUnit.World, 8, false }; 262yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MinValue, GraphicsUnit.Millimeter, 127, true }; 263yield return new object[] { FontFamily.GenericSerif, 16, (FontStyle)int.MaxValue, GraphicsUnit.Millimeter, 200, false }; 314using FontFamily family = FontFamily.GenericSerif;