[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.Windows.FontCache

Class FontCache

Namespace
GrapeCity.Documents.Imaging.Windows
Assembly
GcDocs.Imaging.Windows.dll

Collects DirectWrite fonts for using in various GcDXGraphicss.

public class FontCache : IDisposable
Inheritance
object
FontCache
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

FontCache()

Initializes an instance of the FontCache class.

public FontCache()

FontCache(Factory1)

Initializes an instance of the FontCache class.

public FontCache(Factory1 dwFactory)

Parameters

dwFactory Factory1

The existing DirectWrite factory, to avoid duplicating factories.

Properties

DWFactory

Gets an instance of the Factory1 class.

public Factory1 DWFactory { get; }

Property Value

Factory1

Methods

AddRef()

Increments the internal reference counter to prevent disposing the auto-created font cache.

public void AddRef()

Clear()

Clears the font cache.

public void Clear()

Dispose()

Clean up any resources being used.

public void Dispose()

Dispose(bool)

Performs cleanup operations on managed and unmanaged resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~FontCache()

Performs cleanup operations on unmanaged resources.

protected ~FontCache()

GetFontFace(Font)

Gets an instance of the FontFace for a given Font.

public FontFace GetFontFace(Font font)

Parameters

font Font

The source Font object.

Returns

FontFace

The resulting FontFace.