Class PrivateFontCollection
Represents a collection of font families provided by the application.
Implements
Inherited Members
Namespace: DRIT.Drawing.Text
Assembly: DRIT.Drawing.dll
Syntax
public sealed class PrivateFontCollection : FontCollection, IDisposable
Constructors
PrivateFontCollection()
Initializes a empty PrivateFontCollection instance.
Declaration
public PrivateFontCollection()
Methods
AddFontFile(string)
Adds a font from the specified file to the collection.
Declaration
public void AddFontFile(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | The path to the font file. |
AddMemoryFont(IntPtr, int)
Adds a font from memory to the collection.
Declaration
public void AddMemoryFont(IntPtr memory, int length)
Parameters
| Type | Name | Description |
|---|---|---|
| IntPtr | memory | A pointer to the memory block containing the font data. |
| int | length | The length of the font data in bytes. |