IDWriteFontSet::FindFontFace method (dwrite_3.h)

Gets the index of the matching font face reference in the font set, with the same file, face index, and simulations.

Syntax

HRESULT FindFontFace(
        IDWriteFontFace *fontFace,
  [out] UINT32          *listIndex,
  [out] BOOL            *exists
);

Parameters

fontFace

Type: IDWriteFontFace*

Font face object that specifies the physical font.

[out] listIndex

Type: UINT32*

Receives the zero-based index of the matching font if the font was found, or UINT_MAX otherwise.

[out] exists

Type: BOOL*

Receives TRUE if the font exists or FALSE otherwise.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteFontSet