PrivateFontCollection Class
A collection of font families built from font files that are provided by the client application. For additional information on fonts and text, including example code, see Fonts and Text in the Using GDI+ Managed Classes section of these documents.
For a list of all members of this type, see PrivateFontCollection Members.
System.Object
System.Drawing.Text.FontCollection
System.Drawing.Text.PrivateFontCollection
[Visual Basic] <ComVisible(False)> NotInheritable Public Class PrivateFontCollection Inherits FontCollection [C#] [ComVisible(false)] public sealed class PrivateFontCollection : FontCollection [C++] [ComVisible(false)] public __gc __sealed class PrivateFontCollection : public FontCollection [JScript] public ComVisible(false) class PrivateFontCollection extends FontCollection
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
The PrivateFontCollection class allows applications to install a private version of an existing font without the need to replace the system version of the font. For example, GDI+ can create a private version of the Arial font in addition to the Arial font that the system uses. 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 InstalledFontCollection class.
Requirements
Namespace: System.Drawing.Text
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Drawing (in System.Drawing.dll)
See Also
PrivateFontCollection Members | System.Drawing.Text Namespace