IDWriteFontSetBuilder::AddFontFaceReference(IDWriteFontFaceReference*) method (dwrite_3.h)

Adds a reference to a font to the set being built. The necessary metadata will automatically be extracted from the font upon calling CreateFontSet.

Syntax

HRESULT AddFontFaceReference(
  [in] IDWriteFontFaceReference *fontFaceReference
);

Parameters

[in] fontFaceReference

Type: IDWriteFontFaceReference*

Font face reference object to add to the set.

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

IDWriteFontSetBuilder