[]
IDWriteLocalFontFileLoader
[Guid("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2")]
public class LocalFontFileLoader : FontFileLoaderNative, IUnknown, IFontFileLoader, ICallbackable, IDisposable
Initializes a new instance of the LocalFontFileLoader class.
public LocalFontFileLoader(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Obtains the absolute font file path from the font file reference key.
public string GetFilePath(DataPointer referenceKey)
referenceKey
DataPointerThe font file reference key that uniquely identifies the local font file within the scope of the font loader being used.
If this method succeeds, the absolute font file path from the font file reference key.
HRESULT IDWriteLocalFontFileLoader::GetFilePathFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out, Buffer] wchar_t* filePath,[In] unsigned int filePathSize)
public void GetFilePathFromKey(IntPtr fontFileReferenceKey, int fontFileReferenceKeySize, IntPtr filePath, int filePathSize)
fontFileReferenceKey
System.IntPtrfontFileReferenceKeySize
intfilePath
System.IntPtrfilePathSize
intHRESULT IDWriteLocalFontFileLoader::GetFilePathLengthFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] unsigned int* filePathLength)
public int GetFilePathLengthFromKey(IntPtr fontFileReferenceKey, int fontFileReferenceKeySize)
fontFileReferenceKey
System.IntPtrfontFileReferenceKeySize
intObtains the last write time of the file from the font file reference key.
public DateTime GetLastWriteTime(DataPointer referenceKey)
referenceKey
DataPointerThe font file reference key that uniquely identifies the local font file within the scope of the font loader being used.
The time of the last font file modification.
HRESULT IDWriteLocalFontFileLoader::GetLastWriteTimeFromKey([In, Buffer] const void* fontFileReferenceKey,[In] unsigned int fontFileReferenceKeySize,[Out] FILETIME* lastWriteTime)
public long GetLastWriteTimeFromKey(IntPtr fontFileReferenceKey, int fontFileReferenceKeySize)
fontFileReferenceKey
System.IntPtrfontFileReferenceKeySize
intPerforms an explicit conversion from System.IntPtr to LocalFontFileLoader.
public static explicit operator LocalFontFileLoader(IntPtr nativePointer)
nativePointer
System.IntPtr