InstalledFontCollection
Represents the fonts installed on the system. This class cannot be inherited.
using Windows.Win32;
using Windows.Win32.Graphics.GdiPlus;
namespace System.Drawing.Text
{
public sealed class InstalledFontCollection : FontCollection
{
public unsafe InstalledFontCollection()
{
GpFontCollection* nativeFontCollection = default(GpFontCollection*);
PInvoke.GdipNewInstalledFontCollection(&nativeFontCollection).ThrowIfFailed();
_nativeFontCollection = nativeFontCollection;
}
}
}