IDWriteFontCollectionLoader interface

Used to construct a collection of fonts given a particular type of key.

Methods

The IDWriteFontCollectionLoader interface has these methods.

Method Description
IDWriteFontCollectionLoader::CreateEnumeratorFromKey Creates a font file enumerator object that encapsulates a collection of font files. The font system calls back to this interface to create a font collection.

Remarks

The font collection loader interface is recommended to be implemented by a singleton object. Note that font collection loader implementations must not register themselves with DirectWrite factory inside their constructors and must not unregister themselves in their destructors, because registration and unregistraton operations increment and decrement the object reference count respectively. Instead, registration and unregistration of font file loaders with DirectWrite factory should be performed outside of the font file loader implementation as a separate step.

Requirements

   
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite.h