IDWriteFontFile interface (dwrite.h)

Represents a font file. Applications such as font managers or font viewers can call IDWriteFontFile::Analyze to find out if a particular file is a font file, and whether it is a font type that is supported by the font system.


The IDWriteFontFile interface inherits from the IUnknown interface. IDWriteFontFile also has these types of members:


The IDWriteFontFile interface has these methods.


Analyzes a file and returns whether it represents a font, and whether the font type is supported by the font system.

Obtains the file loader associated with a font file object.

Obtains the pointer to the reference key of a font file. The returned pointer is valid until the font file object is released.


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