IDWriteFontCollection2::GetFontFamily method (dwrite_3.h)

Creates a font family object, given a zero-based font family index.

Syntax

HRESULT GetFontFamily(
        UINT32             index,
  [out] IDWriteFontFamily2 **fontFamily
);

Parameters

index

Type: UINT32

Zero-based index of the font family.

[out] fontFamily

Type: IDWriteFontFamily2**

The address of a pointer to an IDWriteFontFamily2 interface. On successful completion, the function sets the pointer to a newly created font family object.

Return value

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib