<PackageReference Include="System.Drawing.Common" Version="9.0.5" />

SystemFonts

public static class SystemFonts
Specifies the fonts used to display text in Windows display elements.
using System.Runtime.CompilerServices; namespace System.Drawing { [System.Runtime.CompilerServices.NullableContext(2)] [System.Runtime.CompilerServices.Nullable(0)] public static class SystemFonts { public static Font CaptionFont { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(1)] public static Font DefaultFont { [System.Runtime.CompilerServices.NullableContext(1)] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.Nullable(1)] public static Font DialogFont { [System.Runtime.CompilerServices.NullableContext(1)] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static Font IconTitleFont { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static Font MenuFont { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static Font MessageBoxFont { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static Font SmallCaptionFont { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } public static Font StatusFont { get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } [System.Runtime.CompilerServices.NullableContext(1)] [return: System.Runtime.CompilerServices.Nullable(2)] public static Font GetFontByName(string systemFontName) { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } }