IDWriteFontSet1::GetFontAxisRanges(UINT32,DWRITE_FONT_AXIS_RANGE*,UINT32,UINT32*) method (dwrite_3.h)

Retrieves the axis ranges of a single item.

Syntax

HRESULT GetFontAxisRanges(
        UINT32                 listIndex,
  [out] DWRITE_FONT_AXIS_RANGE *fontAxisRanges,
        UINT32                 maxFontAxisRangeCount,
  [out] UINT32                 *actualFontAxisRangeCount
);

Parameters

listIndex

Type: UINT32

Zero-based index of the font in the set.

[out] fontAxisRanges

Type: DWRITE_FONT_AXIS_RANGE*

List of axis value ranges to retrieve.

maxFontAxisRangeCount

Type: UINT32

The number of axis value ranges to retrieve.

[out] actualFontAxisRangeCount

Type: UINT32*

The actual number of axis ranges written or needed.

Return value

Type: HRESULT

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

Return value Description
E_NOT_SUFFICIENT_BUFFER The buffer is too small, with actualFontAxisRangeCount set to the needed size.

Requirements

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