9 instantiations of FontFamily
System.Drawing.Common (8)
System\Drawing\Font.cs (2)
491SetFontFamily(new FontFamily(family, fromInstalledFontCollection: true)); 507SetFontFamily(new FontFamily(name, createDefaultOnFail: true));
System\Drawing\FontConverter.cs (1)
366fontFamily = new FontFamily("Tahoma");
System\Drawing\FontFamily.cs (4)
57return new(_nativeFamily, fromInstalledFontCollection: false); 255public static FontFamily GenericSansSerif => new(GetGdipGenericSansSerif(), fromInstalledFontCollection: true); 267public static FontFamily GenericSerif => new(GenericFontFamilies.Serif); 272public static FontFamily GenericMonospace => new(GenericFontFamilies.Monospace);
System\Drawing\Text\FontCollection.cs (1)
56families[f] = new FontFamily(gpFamilies[f], installedFontCollection);
System.Windows.Forms.Design (1)
System\Drawing\Design\FontNameEditor.cs (1)
41using 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)
777public void AddString(string s, FontFamily family, int style, float emSize, PointF origin, StringFormat? format) => 780public void AddString(string s, FontFamily family, int style, float emSize, Point origin, StringFormat? format) => 783public void AddString(string s, FontFamily family, int style, float emSize, RectangleF layoutRect, StringFormat? format) 805public void AddString(string s, FontFamily family, int style, float emSize, Rectangle layoutRect, StringFormat? format)
System\Drawing\Font.cs (11)
25private FontFamily _fontFamily = null!; 70/// Gets the <see cref='Drawing.FontFamily'/> of this <see cref='Font'/>. 73public FontFamily FontFamily => _fontFamily; 374public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit) 382public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) 390public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 419public Font(FontFamily family, float emSize, FontStyle style) 427public Font(FontFamily family, float emSize, GraphicsUnit unit) 435public Font(FontFamily family, float emSize) 511private void Initialize(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 683private void SetFontFamily(FontFamily family)
System\Drawing\FontConverter.cs (6)
322FontFamily? fontFamily = null; 371FontFamily[] installedFontList = collection.Families; 372foreach (FontFamily font in installedFontList) 381fontFamily ??= FontFamily.GenericSansSerif; 406private readonly FontFamily[] _fonts; 410_fonts = FontFamily.Families;
System\Drawing\FontFamily.cs (23)
49internal 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. 166public override string ToString() => $"[{nameof(FontFamily)}: Name={Name}]"; 175if (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 250public static FontFamily[] Families => InstalledFontCollection.Instance.Families; 253/// Gets a generic SansSerif <see cref='FontFamily'/>. 255public static FontFamily GenericSansSerif => new(GetGdipGenericSansSerif(), fromInstalledFontCollection: true); 265/// Gets a generic Serif <see cref='FontFamily'/>. 267public static FontFamily GenericSerif => new(GenericFontFamilies.Serif); 270/// Gets a generic monospace <see cref='FontFamily'/>. 272public static FontFamily GenericMonospace => new(GenericFontFamilies.Monospace); 275/// Returns an array that contains all of the <see cref='FontFamily'/> objects associated with the specified 279public 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)
208defaultFont ??= 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'/>. 30public FontFamily[] Families 51FontFamily[] 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)
41using FontFamily fontFamily = new(fontName); 69private static void DrawFontSample(PaintValueEventArgs e, FontFamily fontFamily, FontStyle fontStyle)
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
218internal static SWM.FontFamily ToSystemWindowsFontFamily(SD.FontFamily sdFamily)