9 instantiations of FontFamily
System.Drawing.Common (8)
System\Drawing\Font.cs (2)
491
SetFontFamily(new
FontFamily
(family, fromInstalledFontCollection: true));
507
SetFontFamily(new
FontFamily
(name, createDefaultOnFail: true));
System\Drawing\FontConverter.cs (1)
366
fontFamily = new
FontFamily
("Tahoma");
System\Drawing\FontFamily.cs (4)
57
return
new
(_nativeFamily, fromInstalledFontCollection: false);
255
public static FontFamily GenericSansSerif =>
new
(GetGdipGenericSansSerif(), fromInstalledFontCollection: true);
267
public static FontFamily GenericSerif =>
new
(GenericFontFamilies.Serif);
272
public static FontFamily GenericMonospace =>
new
(GenericFontFamilies.Monospace);
System\Drawing\Text\FontCollection.cs (1)
56
families[f] = new
FontFamily
(gpFamilies[f], installedFontCollection);
System.Windows.Forms.Design (1)
System\Drawing\Design\FontNameEditor.cs (1)
41
using FontFamily fontFamily =
new
(fontName);
57 references to FontFamily
System.Drawing (1)
System.Drawing.cs (1)
58
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.
FontFamily
))]
System.Drawing.Common (53)
System\Drawing\Drawing2D\GraphicsPath.cs (4)
777
public void AddString(string s,
FontFamily
family, int style, float emSize, PointF origin, StringFormat? format) =>
780
public void AddString(string s,
FontFamily
family, int style, float emSize, Point origin, StringFormat? format) =>
783
public void AddString(string s,
FontFamily
family, int style, float emSize, RectangleF layoutRect, StringFormat? format)
805
public void AddString(string s,
FontFamily
family, int style, float emSize, Rectangle layoutRect, StringFormat? format)
System\Drawing\Font.cs (11)
25
private
FontFamily
_fontFamily = null!;
70
/// Gets the <see cref='Drawing.
FontFamily
'/> of this <see cref='Font'/>.
73
public
FontFamily
FontFamily => _fontFamily;
374
public Font(
FontFamily
family, float emSize, FontStyle style, GraphicsUnit unit)
382
public Font(
FontFamily
family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
390
public Font(
FontFamily
family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
419
public Font(
FontFamily
family, float emSize, FontStyle style)
427
public Font(
FontFamily
family, float emSize, GraphicsUnit unit)
435
public Font(
FontFamily
family, float emSize)
511
private void Initialize(
FontFamily
family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
683
private void SetFontFamily(
FontFamily
family)
System\Drawing\FontConverter.cs (6)
322
FontFamily
? fontFamily = null;
371
FontFamily
[] installedFontList = collection.Families;
372
foreach (
FontFamily
font in installedFontList)
381
fontFamily ??=
FontFamily
.GenericSansSerif;
406
private readonly
FontFamily
[] _fonts;
410
_fonts =
FontFamily
.Families;
System\Drawing\FontFamily.cs (23)
49
internal
FontFamily
Clone()
61
/// Initializes a new instance of the <see cref='
FontFamily
'/> class with the specified name.
72
/// Initializes a new instance of the <see cref='
FontFamily
'/> class with the specified name.
77
/// Initializes a new instance of the <see cref='
FontFamily
'/> class in the specified
134
/// Initializes a new instance of the <see cref='
FontFamily
'/> class from the specified generic font family.
164
/// Converts this <see cref='
FontFamily
'/> to a human-readable string.
166
public override string ToString() => $"[{nameof(
FontFamily
)}: Name={Name}]";
175
if (obj is not
FontFamily
otherFamily)
185
/// Gets a hash code for this <see cref='
FontFamily
'/>.
195
/// Disposes of this <see cref='
FontFamily
'/>.
222
/// Gets the name of this <see cref='
FontFamily
'/>.
227
/// Returns the name of this <see cref='
FontFamily
'/> in the specified language.
247
/// Returns an array that contains all of the <see cref='
FontFamily
'/> objects associated with the current
250
public static
FontFamily
[] Families => InstalledFontCollection.Instance.Families;
253
/// Gets a generic SansSerif <see cref='
FontFamily
'/>.
255
public static
FontFamily
GenericSansSerif => new(GetGdipGenericSansSerif(), fromInstalledFontCollection: true);
265
/// Gets a generic Serif <see cref='
FontFamily
'/>.
267
public static
FontFamily
GenericSerif => new(GenericFontFamilies.Serif);
270
/// Gets a generic monospace <see cref='
FontFamily
'/>.
272
public static
FontFamily
GenericMonospace => new(GenericFontFamilies.Monospace);
275
/// Returns an array that contains all of the <see cref='
FontFamily
'/> objects associated with the specified
279
public static
FontFamily
[] GetFamilies(Graphics graphics)
330
/// Returns the distance between two consecutive lines of text for this <see cref='
FontFamily
'/> with the
System\Drawing\SystemFonts.cs (1)
208
defaultFont ??= new Font(
FontFamily
.GenericSansSerif, 8);
System\Drawing\Text\FontCollection.cs (4)
28
/// Gets the array of <see cref='
FontFamily
'/> objects associated with this <see cref='FontCollection'/>.
30
public
FontFamily
[] Families
51
FontFamily
[] families = new
FontFamily
[numFound];
System\Drawing\Text\GenericFontFamilies.cs (4)
7
/// Specifies a generic <see cref='
FontFamily
'/>.
12
/// A generic Serif <see cref='
FontFamily
'/>.
17
/// A generic SansSerif <see cref='
FontFamily
'/>.
22
/// A generic Monospace <see cref='
FontFamily
'/>.
System.Windows.Forms.Design (2)
System\Drawing\Design\FontNameEditor.cs (2)
41
using
FontFamily
fontFamily = new(fontName);
69
private static void DrawFontSample(PaintValueEventArgs e,
FontFamily
fontFamily, FontStyle fontStyle)
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
218
internal static SWM.FontFamily ToSystemWindowsFontFamily(SD.
FontFamily
sdFamily)