<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.3.25173.2" />

FontCollection

Provides a base class for installed and private font collections.
public FontFamily[] Families { get; }

Gets the array of FontFamily objects associated with this FontCollection.

public void Dispose()

Releases all resources used by this FontCollection.

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by the FontCollection and optionally releases the managed resources.