System.Drawing.Text.PrivateFontCollection Class

Provides a collection of font families built from font files that are provided by the client application.

See Also: PrivateFontCollection Members


public sealed class PrivateFontCollection : FontCollection


The System.Drawing.Text.PrivateFontCollection class allows applications to install a private version of an existing font without the requirement to replace the system version of the font. For example, ndptecgdiplus can create a private version of the Arial font in addition to the Arial font that the system uses. System.Drawing.Text.PrivateFontCollection can also be used to install fonts that do not exist in the operating system. This is a temporary font install that does not affect the system-installed collection. To see the installed collection, use the System.Drawing.Text.InstalledFontCollection class.


Namespace: System.Drawing.Text
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,