IDWriteFontFileLoader interface

Handles loading font file resources of a particular type from a font file reference key into a font file stream object.

Methods

The IDWriteFontFileLoader interface has these methods.

Method Description
IDWriteFontFileLoader::CreateStreamFromKey Creates a font file stream object that encapsulates an open file resource.

Remarks

The font file loader interface is recommended to be implemented by a singleton object. Note that font file 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