IDWriteFontSetBuilder::CreateFontSet method (dwrite_3.h)

Creates a font set from all the font face references added so far with AddFontFaceReference.

Syntax

HRESULT CreateFontSet(
  [out] IDWriteFontSet **fontSet
);

Parameters

[out] fontSet

Type: IDWriteFontSet**

Contains the newly created font set object, or nullptr in case of failure.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Creating a font set takes less time if the references were added with metadata rather than needing to extract the metadata from the font file.

Requirements

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

See also

IDWriteFontSetBuilder