• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PrivateFontCollection

Represents a collection of font families provided by the application.

Inheritance
object
FontCollection
PrivateFontCollection
Implements
IDisposable
Inherited Members
FontCollection.Families
FontCollection.FindFamily(string)
FontCollection.Dispose()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
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.

Implements

IDisposable
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX