IDWriteLocalFontFileLoader

<summary> A built-in implementation of IDWriteFontFileLoader interface that operates on local font files and exposes local font file information from the font file reference key. Font file references created using CreateFontFileReference use this font file loader. </summary>

Members

Functions

GetFilePathFromKey
HRESULT GetFilePathFromKey(const(void*) fontFileReferenceKey, UINT32 fontFileReferenceKeySize, WCHAR* filePath, UINT32 filePathSize)

<summary> Obtains the absolute font file path from the font file reference key. </summary> <param name="fontFileReferenceKey">Font file reference key that uniquely identifies the local font file within the scope of the font loader being used.</param> <param name="fontFileReferenceKeySize">Size of font file reference key in bytes.</param> <param name="filePath">Character array that receives the local file path.</param> <param name="filePathSize">Size of the filePath array in character count including the terminated NULL character.</param> <returns> Standard HRESULT error code. </returns>

GetFilePathLengthFromKey
HRESULT GetFilePathLengthFromKey(const(void*) fontFileReferenceKey, UINT32 fontFileReferenceKeySize, UINT32* filePathLength)

<summary> Obtains the length of the absolute file path from the font file reference key. </summary> <param name="fontFileReferenceKey">Font file reference key that uniquely identifies the local font file within the scope of the font loader being used.</param> <param name="fontFileReferenceKeySize">Size of font file reference key in bytes.</param> <param name="filePathLength">Length of the file path string not including the terminated NULL character.</param> <returns> Standard HRESULT error code. </returns>

GetLastWriteTimeFromKey
HRESULT GetLastWriteTimeFromKey(const(void*) fontFileReferenceKey, UINT32 fontFileReferenceKeySize, FILETIME* lastWriteTime)

<summary> Obtains the last write time of the file from the font file reference key. </summary> <param name="fontFileReferenceKey">Font file reference key that uniquely identifies the local font file within the scope of the font loader being used.</param> <param name="fontFileReferenceKeySize">Size of font file reference key in bytes.</param> <param name="lastWriteTime">Last modified time of the font file.</param> <returns> Standard HRESULT error code. </returns>

Inherited Members

From IDWriteFontFileLoader

CreateStreamFromKey
HRESULT CreateStreamFromKey(const(void*) fontFileReferenceKey, UINT32 fontFileReferenceKeySize, IDWriteFontFileStream* fontFileStream)

<summary> Creates a font file stream object that encapsulates an open file resource. The resource is closed when the last reference to fontFileStream is released. </summary> <param name="fontFileReferenceKey">Font file reference key that uniquely identifies the font file resource within the scope of the font loader being used.</param> <param name="fontFileReferenceKeySize">Size of font file reference key in bytes.</param> <param name="fontFileStream">Pointer to the newly created font file stream.</param> <returns> Standard HRESULT error code. </returns>

Meta