IDWriteGdiInterop1::GetMatchingFontsByLOGFONT method (dwrite_3.h)

Gets a list of matching fonts based on the specified LOGFONT values. Only fonts of that family name will be returned.

Syntax

HRESULT GetMatchingFontsByLOGFONT(
  [in]  LOGFONT const  *logFont,
  [in]  IDWriteFontSet *fontSet,
  [out] IDWriteFontSet **filteredSet
);

Parameters

[in] logFont

Type: LOGFONT

Structure containing a GDI-compatible font description.

[in] fontSet

Type: IDWriteFontSet*

The font set to search.

[out] filteredSet

Type: IDWriteFontSet**

>Receives the filtered font set if successful.

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_3.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteGdiInterop1