IDWriteFontSetBuilder2::AddFont 方法 (dwrite_3.h)

语法

HRESULT AddFont(
  IDWriteFontFile              *fontFile,
  UINT32                       fontFaceIndex,
  DWRITE_FONT_SIMULATIONS      fontSimulations,
  DWRITE_FONT_AXIS_VALUE const *fontAxisValues,
  UINT32                       fontAxisValueCount,
  DWRITE_FONT_AXIS_RANGE const *fontAxisRanges,
  UINT32                       fontAxisRangeCount,
  DWRITE_FONT_PROPERTY const   *properties,
  UINT32                       propertyCount
);

参数

fontFile

fontFaceIndex

fontSimulations

fontAxisValues

fontAxisValueCount

fontAxisRanges

fontAxisRangeCount

properties

propertyCount

要求

要求
最低受支持的客户端 Windows 应用 SDK 0.5 或更高版本的Windows 10 版本 1809 ()
标头 dwrite_3.h