Skip to main content

PrivateFontCollection

Namespace: System.Drawing.Text

Assembly: System.Drawing.Managed (4.0.0.0)

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

public class PrivateFontCollection : FontCollection

Constructors

Instance member PrivateFontCollection()

Initializes a new instance of the PrivateFontCollection class.

Methods

Instance member AddFontFile(filename)

Adds a font from the specified file to this PrivateFontCollection.

ParameterTypeDescription
filenameStringA String that contains the file name of the font to add.

Throws:

Instance member AddMemoryFont(memory, length)

Adds a font contained in system memory to this PrivateFontCollection.

ParameterTypeDescription
memoryIntPtrThe memory address of the font to add.
lengthInt32The memory length of the font to add.