[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.FontCollection.Create

Create Method

Create(Factory, IFontCollectionLoader, DataPointer)

Creates a font collection using a custom font collection loader.

Declaration
public static FontCollection Create(Factory factory, IFontCollectionLoader collectionLoader, DataPointer collectionKey)
Parameters
Type Name Description
Factory factory

A reference to a DirectWrite factory Factory

IFontCollectionLoader collectionLoader

An application-defined font collection loader, which must have been previously registered using GrapeCity.Documents.DX.DirectWrite.Factory.RegisterFontCollectionLoader_(System.IntPtr).

DataPointer collectionKey

The key used by the loader to identify a collection of font files. The buffer allocated for this key should at least be the size of collectionKeySize.

Returns
Type Description
FontCollection