IDWriteGdiInterop1::GetMatchingFontsByLOGFONT 方法 (dwrite_3.h)

根据指定的 LOGFONT 值获取匹配字体的列表。 仅返回该家族名称的字体。

语法

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

参数

[in] logFont

类型: LOGFONT

包含 GDI 兼容字体说明的结构。

[in] fontSet

类型: IDWriteFontSet*

设置为搜索的字体。

[out] filteredSet

类型: IDWriteFontSet**

>如果成功,则接收筛选的字体集。

返回值

类型: HRESULT

如果该方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

要求

   
目标平台 Windows
标头 dwrite_3.h
Library Dwrite.lib
DLL Dwrite.dll

请参阅

IDWriteGdiInterop1