<PackageReference Include="System.Drawing.Common" Version="10.0.0-rc.2.25502.107" />

FontFamily

public sealed class FontFamily : MarshalByRefObject, IDisposable
Defines a group of type faces having a similar basic design and certain variations in styles. This class cannot be inherited.
using System.Diagnostics.CodeAnalysis; using System.Drawing.Text; using System.Runtime.CompilerServices; namespace System.Drawing { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public sealed class FontFamily : MarshalByRefObject, IDisposable { public static FontFamily[] Families { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static FontFamily GenericMonospace { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static FontFamily GenericSansSerif { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static FontFamily GenericSerif { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public string Name { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public FontFamily(GenericFontFamilies genericFamily) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public FontFamily(string name) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public FontFamily(string name, [System.Runtime.CompilerServices.Nullable(2)] FontCollection fontCollection) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void Dispose() { } [System.Runtime.CompilerServices.NullableContext(2)] public override bool Equals([System.Diagnostics.CodeAnalysis.NotNullWhen(true)] object obj) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } ~FontFamily() { } public int GetCellAscent(FontStyle style) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public int GetCellDescent(FontStyle style) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public int GetEmHeight(FontStyle style) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } [System.Obsolete("FontFamily.GetFamilies has been deprecated. Use Families instead.")] public static FontFamily[] GetFamilies(Graphics graphics) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override int GetHashCode() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public int GetLineSpacing(FontStyle style) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public string GetName(int language) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public bool IsStyleAvailable(FontStyle style) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public override string ToString() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }