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

FontCollection

public abstract class FontCollection : IDisposable
Provides a base class for installed and private font collections.
using System.Runtime.CompilerServices; namespace System.Drawing.Text { public abstract class FontCollection : IDisposable { [System.Runtime.CompilerServices.Nullable(1)] public FontFamily[] Families { [System.Runtime.CompilerServices.NullableContext(1)] get { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } internal FontCollection() { throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } public void Dispose() { } protected virtual void Dispose(bool disposing) { } ~FontCollection() { } } }