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(
  IDWriteFontFaceReference *fontFaceReference
);

Parameters

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

   
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteFontSetBuilder