PrivateFontCollection
Provides a collection of font families built from font files that are provided by the client application.
using System.Runtime.CompilerServices;
namespace System.Drawing.Text
{
public sealed class PrivateFontCollection : FontCollection
{
public PrivateFontCollection()
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
[System.Runtime.CompilerServices.NullableContext(1)]
public void AddFontFile(string filename)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
public void AddMemoryFont(IntPtr memory, int length)
{
throw new PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported);
}
protected override void Dispose(bool disposing)
{
}
}
}