Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Obtains the absolute font file path from the font file reference key.
Syntax
HRESULT GetFilePathFromKey(
[in] void const *fontFileReferenceKey,
UINT32 fontFileReferenceKeySize,
[out] WCHAR *filePath,
UINT32 filePathSize
);
Parameters
[in] fontFileReferenceKey
Type: const void*
The font file reference key that uniquely identifies the local font file within the scope of the font loader being used.
fontFileReferenceKeySize
Type: UINT32
The size of font file reference key in bytes.
[out] filePath
Type: WCHAR*
The character array that receives the local file path.
filePathSize
Type: UINT32
The length of the file path character array.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | dwrite.h |
| Library | Dwrite.lib |
| DLL | Dwrite.dll |