IDWriteFontSet3::GetFontSourceName method (dwrite_3.h)

Copies the font source name (for the specified font) into an output array.

Syntax

HRESULT GetFontSourceName(
        UINT32 listIndex,
  [out] WCHAR  *stringBuffer,
        UINT32 stringBufferSize
);

Parameters

listIndex

Type: UINT32

Zero-based index of the font.

[out] stringBuffer

Type: WCHAR*

Character array that receives the string. Call GetFontSourceNameLength to determine the size of array to allocate.

stringBufferSize

Type: UINT32

Size of the array in characters. The size must include space for the terminating null character.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib

See also

GetFontSourceNameLength