IDWriteFactory.CreateFontFileReference

<summary> CreateFontFileReference creates a font file reference object from a local font file. </summary> <param name="filePath">Absolute file path. Subsequent operations on the constructed object may fail if the user provided filePath doesn't correspond to a valid file on the disk.</param> <param name="lastWriteTime">Last modified time of the input file path. If the parameter is omitted, the function will access the font file to obtain its last write time, so the clients are encouraged to specify this value to avoid extra disk access. Subsequent operations on the constructed object may fail if the user provided lastWriteTime doesn't match the file on the disk.</param> <param name="fontFile">Contains newly created font file reference object, or NULL in case of failure.</param> <returns> Standard HRESULT error code. </returns>

interface IDWriteFactory
extern (Windows)
HRESULT
CreateFontFileReference
(
const(WCHAR)* filePath
,
const(FILETIME)* lastWriteTime
,
)

Meta